|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
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
Provides a default SummaryStatistics
implementation.
Field Summary | |
protected GeometricMean |
geoMean
geoMean of values that have been added |
protected Max |
max
max of values that have been added |
protected Mean |
mean
mean of values that have been added |
protected Min |
min
min of values that have been added |
protected long |
n
count of values that have been added |
protected SecondMoment |
secondMoment
SecondMoment is used to compute the mean and variance |
protected Sum |
sum
sum of values that have been added |
protected SumOfLogs |
sumLog
sumLog of values that have been added |
protected SumOfSquares |
sumsq
sum of the square of each value that has been added |
protected Variance |
variance
variance of values that have been added |
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. |
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 |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected long n
protected SecondMoment secondMoment
protected Sum sum
protected SumOfSquares sumsq
protected Min min
protected Max max
protected SumOfLogs sumLog
protected GeometricMean geoMean
protected Mean mean
protected Variance variance
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 String toString()
public void clear()
clear
in class SummaryStatistics
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |