|
|||||||||||
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
Provides univariate measures for an array of doubles.
Field Summary | |
protected Percentile |
percentile
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 | |
AbstractDescriptiveStatistics()
Create an AbstractDescriptiveStatistics |
|
AbstractDescriptiveStatistics(int window)
Create an AbstractDescriptiveStatistics with a specific Window |
Method Summary | |
abstract void |
addValue(double value)
If windowSize is set to Infinite, statistics are calculated using the following recursive strategy . |
abstract double |
getElement(int index)
Returns the element at the specified index |
double |
getPercentile(double p)
Returns an estimate for the pth percentile of the stored values. |
double[] |
getSortedValues()
Returns the current set of values in an array of double primitives, sorted in ascending order. |
abstract double[] |
getValues()
Returns the current set of values in an array of double primitives. |
Methods inherited from class org.apache.commons.math.stat.AbstractStorelessDescriptiveStatistics |
apply, clear, getGeometricMean, getKurtosis, getKurtosisClass, getMax, getMean, getMin, getN, getSkewness, getStandardDeviation, getSum, getSumsq, getVariance, getWindowSize, setWindowSize, 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 Percentile percentile
Constructor Detail |
public AbstractDescriptiveStatistics()
public AbstractDescriptiveStatistics(int window)
window
- WindowSIze for stat calculationMethod Detail |
public double getPercentile(double p)
DescriptiveStatistics
0 < p < 100
(otherwise an
IllegalArgumentException
is thrown)Double.NaN
otherwise)
getPercentile
in class DescriptiveStatistics
p
- the requested percentile (scaled from 0 - 100)
DescriptiveStatistics.getPercentile(double)
public double[] getSortedValues()
DescriptiveStatistics
getSortedValues
in class DescriptiveStatistics
DescriptiveStatistics.getSortedValues()
public abstract void addValue(double value)
AbstractStorelessDescriptiveStatistics
addValue
in class AbstractStorelessDescriptiveStatistics
org.apache.commons.math.stat.Univariate#addValue(double)
public abstract double[] getValues()
DescriptiveStatistics
getValues
in class DescriptiveStatistics
DescriptiveStatistics.getValues()
public abstract double getElement(int index)
DescriptiveStatistics
getElement
in class DescriptiveStatistics
index
- The Index of the element
DescriptiveStatistics.getElement(int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |