You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by Apache Wiki <wi...@apache.org> on 2013/04/17 12:50:30 UTC

[Hama Wiki] Update of "PiEstimator" by edwardyoon

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hama Wiki" for change notification.

The "PiEstimator" page has been changed by edwardyoon:
http://wiki.apache.org/hama/PiEstimator?action=diff&rev1=12&rev2=13

  
  1) Each process computes the value of Pi locally, and 2) sends it to master task using send() function. Then, 3) the master task can recieve the messages using sync() function. Finally, we can calculate the average value of sum of PI values from each peers as below:
  
- {{{
+ {{{#!java
      @Override
      public void bsp(
          BSPPeer<NullWritable, NullWritable, Text, DoubleWritable> peer)