public final class Summation
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Constructor and Description |
---|
Summation()
Constructs a new summation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
void |
exportSum(java.lang.String name,
ResultWriter writer)
Exports a summation as a result node.
|
double |
getCoefficientOfVariation()
Returns the coefficient of variation of this sum.
|
double |
getConfidenceInterval()
Returns the confidence interval of this sum.
|
double |
getMean()
Returns the mean of all samples added to this sum.
|
long |
getNumberOfSamples()
Returns the number of samples added to this sum.
|
double |
getStandardDeviation()
Returns the standard deviation of this sum.
|
double |
getSum()
Returns the sum of all samples.
|
double |
getVariance()
Returns the variation of this sum.
|
int |
hashCode() |
void |
importSum(java.lang.String name,
ResultReader reader)
Imports a summation from a result node.
|
void |
reset()
Resets this summation.
|
java.lang.String |
toString() |
void |
update(double sample)
Adds a sample to this sum.
|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void exportSum(java.lang.String name, ResultWriter writer) throws PrintException
PrintException
public void importSum(java.lang.String name, ResultReader reader) throws ImportException
ImportException
public void update(double sample)
sample
- value to be addedpublic void reset()
public double getSum()
public double getMean()
public double getVariance()
public double getCoefficientOfVariation()
public double getStandardDeviation()
public long getNumberOfSamples()
public double getConfidenceInterval()