Example usage for Java org.apache.commons.math3.stat.descriptive DescriptiveStatistics fields, constructors, methods, implement or subclass
The text is from its open source code.
DescriptiveStatistics() Construct a DescriptiveStatistics instance with an infinite window | |
DescriptiveStatistics(int window) Construct a DescriptiveStatistics instance with the specified window | |
DescriptiveStatistics(double[] initialDoubleArray) Construct a DescriptiveStatistics instance with an infinite window and the initial data values in double[] initialDoubleArray. | |
DescriptiveStatistics(DescriptiveStatistics original) Copy constructor. |
void | addValue(double v) Adds the value to the dataset. |
double | apply(UnivariateStatistic stat) Apply the given statistic to the data associated with this set of statistics. |
void | clear() Resets all statistics and storage |
double | getElement(int index) Returns the element at the specified index |
double | getGeometricMean() Returns the geometric mean of the available values |
double | getKurtosis() Returns the Kurtosis of the available values. |
double | getMax() Returns the maximum of the available values |
double | getMean() Returns the arithmetic mean of the available values |
double | getMin() Returns the minimum of the available values |
long | getN() Returns the number of available values |
double | getPercentile(double p) Returns an estimate for the pth percentile of the stored values. |
double | getPopulationVariance() Returns the population variance of the available values. |
double | getSkewness() Returns the skewness of the available values. |
double[] | getSortedValues() Returns the current set of values in an array of double primitives, sorted in ascending order. |
double | getStandardDeviation() Returns the standard deviation of the available values. |
double | getSum() Returns the sum of the values that have been added to Univariate. |
double | getSumsq() Returns the sum of the squares of the available values. |
double[] | getValues() Returns the current set of values in an array of double primitives. |
double | getVariance() Returns the (sample) variance of the available values. |
int | getWindowSize() Returns the maximum number of values that can be stored in the dataset, or INFINITE_WINDOW (-1) if there is no limit. |
void | setWindowSize(int windowSize) WindowSize controls the number of values that contribute to the reported statistics. |
String | toString() Generates a text report displaying univariate statistics from values that have been added. |