public static enum Collectors.VarianceType extends java.lang.Enum<Collectors.VarianceType>
Enum Constant and Description |
---|
POPULATION
The population variance, (aka the biased sample variance).
|
SAMPLE
The sample variance, an unbiased estimator for the population variance (utilizing Bessel's correction).
|
Modifier and Type | Method and Description |
---|---|
static Collectors.VarianceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Collectors.VarianceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Collectors.VarianceType POPULATION
Mathematically: `sigma^2=1/N sum_(i=1)^N (x_i - mu)`
public static final Collectors.VarianceType SAMPLE
Mathematically: `sigma^2=1/(N-1) sum_(i=1)^N (x_i - bar x)`
public static Collectors.VarianceType[] values()
for (Collectors.VarianceType c : Collectors.VarianceType.values()) System.out.println(c);
public static Collectors.VarianceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null