java.lang.Object
java.lang.Enum<Statistic>
org.apache.commons.statistics.descriptive.Statistic
All Implemented Interfaces:
Serializable, Comparable<Statistic>

public enum Statistic extends Enum<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 Details

  • Method Details

    • values

      public static Statistic[] 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

      public static Statistic valueOf(String name)
      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 name
      NullPointerException - if the argument is null