|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Statistic>
org.jaitools.numeric.Statistic
public enum Statistic
Constants for the statistics supported by the SampleStats and StreamingSampleStats classes.
| Enum Constant Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<Statistic>public String getDescription()
public boolean supportsIntegralResult()
true if an integral result can be returned;
false otherwisepublic static Statistic get(String name)
name - the statistic name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||