public class Summation extends Object implements Container<Summation>, Combinable<Summation>
Modifier and Type | Field and Description |
---|---|
ArithmeticProgression |
E
Variable e in the summation.
|
ArithmeticProgression |
N
Variable n in the summation.
|
Constructor and Description |
---|
Summation(ArithmeticProgression N,
ArithmeticProgression E)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
<T extends Container<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.
|
public final ArithmeticProgression N
public final ArithmeticProgression E
public Summation(ArithmeticProgression N, ArithmeticProgression E)
public Summation getElement()
getElement
in interface Container<Summation>
public Double getValue()
public void setValue(double v)
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)
Copyright © 2013 Apache Software Foundation. All rights reserved.