Package com.imsl.stat
Enum Class TimeSeriesOperations.CombineMethod
- All Implemented Interfaces:
Serializable,Comparable<TimeSeriesOperations.CombineMethod>,java.lang.constant.Constable
- Enclosing class:
- TimeSeriesOperations
public static enum TimeSeriesOperations.CombineMethod
extends Enum<TimeSeriesOperations.CombineMethod>
Public enum of methods for combining synchronous time series values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTakes the absolute difference |ts1-ts2| between the two values.Takes the average of the two values.Uses a custom combine function that is provided by the user.Takes the difference (ts1-ts2) of the two values.Uses the value from ts1, the first series in the call.Uses the maximum of the two values.Uses the minimum of the two values.Takes the sum of the two values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TimeSeriesOperations.CombineMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIRST
Uses the value from ts1, the first series in the call. -
AVERAGE
Takes the average of the two values. -
SUM
Takes the sum of the two values. -
MIN
Uses the minimum of the two values. -
MAX
Uses the maximum of the two values. -
DIFF
Takes the difference (ts1-ts2) of the two values. -
ABS_DIFF
Takes the absolute difference |ts1-ts2| between the two values. -
CUSTOM
Uses a custom combine function that is provided by the user.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-