|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.stat.DescriptiveStatistics
org.apache.commons.math.stat.AbstractStorelessDescriptiveStatistics
org.apache.commons.math.stat.AbstractDescriptiveStatistics
org.apache.commons.math.stat.DescriptiveStatisticsImpl
Field Summary | |
protected ContractableDoubleArray |
eDA
A contractable double array is used. |
Fields inherited from class org.apache.commons.math.stat.AbstractDescriptiveStatistics |
percentile |
Fields inherited from class org.apache.commons.math.stat.AbstractStorelessDescriptiveStatistics |
geoMean, kurtosis, max, mean, min, moment, n, skewness, sum, sumLog, sumsq, variance, windowSize |
Fields inherited from class org.apache.commons.math.stat.DescriptiveStatistics |
INFINITE_WINDOW, LEPTOKURTIC, MESOKURTIC, PLATYKURTIC |
Constructor Summary | |
DescriptiveStatisticsImpl()
Construct a DescriptiveStatisticsImpl |
Method Summary | |
void |
addValue(double v)
If windowSize is set to Infinite, statistics are calculated using the following recursive strategy . |
double |
apply(UnivariateStatistic stat)
Apply the given statistic to this univariate collection. |
void |
clear()
Resets all statistics and storage |
double |
getElement(int index)
Returns the element at the specified index |
int |
getN()
Returns the number of available values |
double[] |
getValues()
Returns the current set of values in an array of double primitives. |
void |
setWindowSize(int windowSize)
WindowSize controls the number of values which contribute to the values returned by Univariate. |
Methods inherited from class org.apache.commons.math.stat.AbstractDescriptiveStatistics |
getPercentile, getSortedValues |
Methods inherited from class org.apache.commons.math.stat.AbstractStorelessDescriptiveStatistics |
getGeometricMean, getKurtosis, getKurtosisClass, getMax, getMean, getMin, getSkewness, getStandardDeviation, getSum, getSumsq, getVariance, getWindowSize, toString |
Methods inherited from class org.apache.commons.math.stat.DescriptiveStatistics |
newInstance, newInstance, newInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected ContractableDoubleArray eDA
Constructor Detail |
public DescriptiveStatisticsImpl()
Method Detail |
public double[] getValues()
DescriptiveStatistics
getValues
in class AbstractDescriptiveStatistics
DescriptiveStatistics.getValues()
public double getElement(int index)
DescriptiveStatistics
getElement
in class AbstractDescriptiveStatistics
DescriptiveStatistics.getElement(int)
public int getN()
DescriptiveStatistics
getN
in class AbstractStorelessDescriptiveStatistics
org.apache.commons.math.stat.Univariate#getN()
public void addValue(double v)
AbstractStorelessDescriptiveStatistics
addValue
in class AbstractDescriptiveStatistics
org.apache.commons.math.stat.Univariate#addValue(double)
public void clear()
DescriptiveStatistics
clear
in class AbstractStorelessDescriptiveStatistics
org.apache.commons.math.stat.Univariate#clear()
public void setWindowSize(int windowSize)
DescriptiveStatistics
setWindowSize
in class AbstractStorelessDescriptiveStatistics
org.apache.commons.math.stat.Univariate#setWindowSize(int)
public double apply(UnivariateStatistic stat)
apply
in class AbstractStorelessDescriptiveStatistics
stat
- the statistic to apply
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |