java.lang.Comparable<Summation>, Combinable<Summation>, Container<Summation>public class Summation extends java.lang.Object implements Container<Summation>, Combinable<Summation>
| Modifier and Type | Field | Description |
|---|---|---|
ArithmeticProgression |
E |
Variable e in the summation.
|
ArithmeticProgression |
N |
Variable n in the summation.
|
| Constructor | Description |
|---|---|
Summation(ArithmeticProgression N,
ArithmeticProgression E) |
Constructor
|
| Modifier and Type | Method | 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(java.lang.Object obj) |
|
Summation |
getElement() |
|
java.lang.Double |
getValue() |
Return the value of this summation
|
int |
hashCode() |
Not supported
|
Summation[] |
partition(int nParts) |
Partition the summation.
|
<T extends Container<Summation>> |
remainingTerms(java.util.List<T> sorted) |
Find the remaining terms.
|
void |
setValue(double v) |
Set the value of this summation
|
java.lang.String |
toString() |
|
static Summation |
valueOf(java.lang.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 java.lang.Double getValue()
public void setValue(double v)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static Summation valueOf(java.lang.String s)
public double compute()
public int compareTo(Summation that)
compareTo in interface java.lang.Comparable<Summation>public Summation combine(Summation that)
combine in interface Combinable<Summation>that - Another object.public <T extends Container<Summation>> java.util.List<Summation> remainingTerms(java.util.List<T> sorted)
public boolean contains(Summation that)
public Summation[] partition(int nParts)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.