Package adams.data.smoothing
Enum AbstractSlidingWindow.Measure
- java.lang.Object
-
- java.lang.Enum<AbstractSlidingWindow.Measure>
-
- adams.data.smoothing.AbstractSlidingWindow.Measure
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractSlidingWindow.Measure>
- Enclosing class:
- AbstractSlidingWindow<T extends DataContainer>
public static enum AbstractSlidingWindow.Measure extends Enum<AbstractSlidingWindow.Measure>
The type of measure to use for computing the "smoothed" points in the sliding window.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractSlidingWindow.Measure
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractSlidingWindow.Measure[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MEDIAN
public static final AbstractSlidingWindow.Measure MEDIAN
uses the median of the sliding window.
-
MEAN
public static final AbstractSlidingWindow.Measure MEAN
uses the mean of the sliding window.
-
-
Method Detail
-
values
public static AbstractSlidingWindow.Measure[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractSlidingWindow.Measure c : AbstractSlidingWindow.Measure.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractSlidingWindow.Measure 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 nameNullPointerException
- if the argument is null
-
-