|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.examples.pi.math.Summation
public class Summation
Represent the summation \sum \frac{2^e \mod n}{n}.
Field Summary | |
---|---|
ArithmeticProgression |
E
Variable e in the summation. |
ArithmeticProgression |
N
Variable n in the summation. |
Constructor Summary | |
---|---|
Summation(ArithmeticProgression N,
ArithmeticProgression E)
Constructor |
Method Summary | ||
---|---|---|
Summation |
combine(Summation that)
Combine this with that. |
|
int |
compareTo(Summation that)
|
|
double |
compute()
Compute the value of the summation. |
|
boolean |
contains(Summation that)
Does this contains that? |
|
boolean |
equals(Object obj)
|
|
Summation |
getElement()
|
|
Double |
getValue()
Return the value of this summation |
|
int |
hashCode()
Not supported |
|
Summation[] |
partition(int nParts)
Partition the summation. |
|
|
remainingTerms(List<T> sorted)
Find the remaining terms. |
|
void |
setValue(double v)
Set the value of this summation |
|
String |
toString()
|
|
static Summation |
valueOf(String s)
Covert a String to a Summation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final ArithmeticProgression N
public final ArithmeticProgression E
Constructor Detail |
---|
public Summation(ArithmeticProgression N, ArithmeticProgression E)
Method Detail |
---|
public Summation getElement()
getElement
in interface Container<Summation>
public Double getValue()
public void setValue(double v)
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static Summation valueOf(String s)
public double compute()
public int compareTo(Summation that)
compareTo
in interface Comparable<Summation>
public Summation combine(Summation that)
combine
in interface Combinable<Summation>
that
- Another object.
public <T extends Container<Summation>> List<Summation> remainingTerms(List<T> sorted)
public boolean contains(Summation that)
public Summation[] partition(int nParts)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |