org.apache.hadoop.examples.pi.math
Class Bellard.Sum

java.lang.Object
  extended by org.apache.hadoop.examples.pi.math.Bellard.Sum
All Implemented Interfaces:
Iterable<Summation>, Container<Summation>
Enclosing class:
Bellard

public static class Bellard.Sum
extends Object
implements Container<Summation>, Iterable<Summation>

The sums in the Bellard's formula


Method Summary
 Summation getElement()
          
 double getValue()
          get the value of sigma
 Iterator<Summation> iterator()
          
 void setValue(Summation s)
          Set the value of sigma
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()

Overrides:
toString in class Object

setValue

public void setValue(Summation s)
Set the value of sigma


getValue

public double getValue()
get the value of sigma


getElement

public Summation getElement()

Specified by:
getElement in interface Container<Summation>
Returns:
The contained element.

iterator

public Iterator<Summation> iterator()

Specified by:
iterator in interface Iterable<Summation>


Copyright © 2009 The Apache Software Foundation