public enum Estimator extends Enum<Estimator>
Estimators are associated with actions that require to transform a sorted set of values over time into a single value.
Enum Constant and Description |
---|
AVERAGE
Average value.
|
FIRST
First value.
|
LAST
Last value.
|
MAX
Maximum value.
|
MEDIAN
Median value.
|
MIN
Minimum value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
is(Estimator... estimators)
Returns true if this estimator is any of the given
estimators . |
boolean |
is(Estimator estimator)
Returns true if this estimator is equals to
estimator . |
static Estimator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Estimator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Estimator AVERAGE
public static final Estimator MEDIAN
public static final Estimator MIN
public static final Estimator MAX
public static final Estimator FIRST
public static final Estimator LAST
public static Estimator[] values()
for (Estimator c : Estimator.values()) System.out.println(c);
public static Estimator 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 boolean is(Estimator estimator)
estimator
.estimator
- estimator to test equalityestimator
is equal to this instancepublic boolean is(Estimator... estimators)
estimators
.estimators
- estimators to test equalityestimators
contains this estimatorCopyright © 2007–2015 Gephi Consortium. All rights reserved.