Enum Statistic
- All Implemented Interfaces:
Serializable
,Comparable<Statistic>
A statistic that can be computed on univariate data, for example a stream of
double
values.
Statistic
is an enum representing the statistics that can be computed
by implementations in the org.apache.commons.statistics.descriptive
package.
Note
Implementations may provide additional parameters to control the computation of the statistic, for example to compute the population (biased) or sample (unbiased) variance.
- Since:
- 1.1
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGeometric mean.Kurtosis.Maximum.Mean, or average.Minimum.Product.Skewness.Standard deviation.Sum.Sum of the natural logarithm of values.Sum of the squared values.Variance. -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
MIN
Minimum. -
MAX
Maximum. -
MEAN
Mean, or average. -
STANDARD_DEVIATION
Standard deviation. -
VARIANCE
Variance. -
SKEWNESS
Skewness. -
KURTOSIS
Kurtosis. -
PRODUCT
Product. -
SUM
Sum. -
SUM_OF_LOGS
Sum of the natural logarithm of values. -
SUM_OF_SQUARES
Sum of the squared values. -
GEOMETRIC_MEAN
Geometric mean.
-
-
Constructor Details
-
Statistic
private Statistic()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-