|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.stat.descriptive.SummaryStatistics
org.apache.commons.math.stat.descriptive.SummaryStatisticsImpl
public class SummaryStatisticsImpl
Provides a default SummaryStatistics
implementation.
Constructor Summary | |
---|---|
SummaryStatisticsImpl()
Construct a SummaryStatistics |
Method Summary | |
---|---|
void |
addValue(double value)
Add a value to the data |
void |
clear()
Resets all statistics and storage |
double |
getGeometricMean()
Returns the geometric mean of the values that have been added. |
double |
getMax()
Returns the maximum of the values that have been added. |
double |
getMean()
Returns the mean of the values that have been added. |
double |
getMin()
Returns the minimum of the values that have been added. |
long |
getN()
Returns the number of available values |
double |
getStandardDeviation()
Returns the standard deviation of the values that have been added. |
double |
getSum()
Returns the sum of the values that have been added to Univariate. |
double |
getSumsq()
Returns the sum of the squares of the values that have been added. |
double |
getVariance()
Returns the variance of the values that have been added. |
java.lang.String |
toString()
Generates a text report displaying summary statistics from values that have been added. |
Methods inherited from class org.apache.commons.math.stat.descriptive.SummaryStatistics |
---|
equals, getSummary, hashCode, newInstance, newInstance |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SummaryStatisticsImpl()
Method Detail |
---|
public void addValue(double value)
addValue
in class SummaryStatistics
value
- the value to addpublic long getN()
getN
in interface StatisticalSummary
getN
in class SummaryStatistics
public double getSum()
getSum
in interface StatisticalSummary
getSum
in class SummaryStatistics
public double getSumsq()
Double.NaN is returned if no values have been added.
getSumsq
in class SummaryStatistics
public double getMean()
Double.NaN is returned if no values have been added.
getMean
in interface StatisticalSummary
getMean
in class SummaryStatistics
public double getStandardDeviation()
Double.NaN is returned if no values have been added.
getStandardDeviation
in interface StatisticalSummary
getStandardDeviation
in class SummaryStatistics
public double getVariance()
Double.NaN is returned if no values have been added.
getVariance
in interface StatisticalSummary
getVariance
in class SummaryStatistics
public double getMax()
Double.NaN is returned if no values have been added.
getMax
in interface StatisticalSummary
getMax
in class SummaryStatistics
public double getMin()
Double.NaN is returned if no values have been added.
getMin
in interface StatisticalSummary
getMin
in class SummaryStatistics
public double getGeometricMean()
Double.NaN is returned if no values have been added.
getGeometricMean
in class SummaryStatistics
public java.lang.String toString()
toString
in class java.lang.Object
public void clear()
clear
in class SummaryStatistics
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |