Enum NaNStrategy
- All Implemented Interfaces:
Serializable
,Comparable<NaNStrategy>
Strategies for handling
NaN
values in rank transformations.- Since:
- 1.1
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNaNs result in an exception.NaNs are left fixed "in place", that is the rank transformation is applied to the other elements in the input array, but the NaN elements are returned unchanged.NaNs are considered maximal in the ordering, equivalent to (that is, tied with) positive infinity.NaNs are considered minimal in the ordering, equivalent to (that is, tied with) negative infinity.NaNs are removed before rank transform is applied. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NaNStrategy
Returns the enum constant of this type with the specified name.static NaNStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MINIMAL
NaNs are considered minimal in the ordering, equivalent to (that is, tied with) negative infinity. -
MAXIMAL
NaNs are considered maximal in the ordering, equivalent to (that is, tied with) positive infinity. -
REMOVED
NaNs are removed before rank transform is applied. -
FIXED
NaNs are left fixed "in place", that is the rank transformation is applied to the other elements in the input array, but the NaN elements are returned unchanged. -
FAILED
NaNs result in an exception.
-
-
Constructor Details
-
NaNStrategy
private NaNStrategy()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-