public enum Statistic extends Enum<Statistic>
| Enum Constant and Description |
|---|
APPROX_MEDIAN
Approximate median calculated with the 'remedian' algorithm
of Rousseeuw et al.
|
MAX
Maximum sample value
|
MEAN
Arithmetic mean
|
MEDIAN
Exact median
|
MIN
Minimum sample value
|
RANGE
Range (maximum - minimum)
|
SDEV
Sample standard deviation
|
SUM
Sum of valid values
|
VARIANCE
Sample variance
|
| Modifier and Type | Method and Description |
|---|---|
static Statistic |
get(String name)
Gets a Statistic constant by name (case-insensitive).
|
String |
getDescription()
Returns a brief description of the statistic
|
boolean |
supportsIntegralResult()
Tests if this statistic can return an integral result
when working with integral sample data.
|
String |
toString()
Returns the short name of this statistic
|
static Statistic |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Statistic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Statistic MEAN
public static final Statistic MEDIAN
public static final Statistic APPROX_MEDIAN
public static final Statistic MIN
public static final Statistic MAX
public static final Statistic RANGE
public static final Statistic SDEV
public static final Statistic SUM
public static final Statistic VARIANCE
public static Statistic[] values()
for (Statistic c : Statistic.values()) System.out.println(c);
public static Statistic valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
public String getDescription()
public boolean supportsIntegralResult()
true if an integral result can be returned;
false otherwiseCopyright © 2009–2020. All rights reserved.