Package dev.nm.stat.descriptive.rank
Enum Rank.TiesMethod
- java.lang.Object
-
- java.lang.Enum<Rank.TiesMethod>
-
- dev.nm.stat.descriptive.rank.Rank.TiesMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<Rank.TiesMethod>
- Enclosing class:
- Rank
public static enum Rank.TiesMethod extends Enum<Rank.TiesMethod>
The method for assigning ranks when some values are equal (called 'ties').
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Rank.TiesMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static Rank.TiesMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AS_26
public static final Rank.TiesMethod AS_26
Algorithm AS 26.- See Also:
- "Algorithm AS 26: Ranking an Array of Numbers. P. R. Freeman. Journal of the Royal Statistical Society. Series C (Applied Statistics) Vol. 19, No. 1 (1970), p. 111-113."
- "Remark AS R7: A Remark on Algorithm AS 26: Ranking an Array of Numbers. P. R. Freeman. Journal of the Royal Statistical Society. Series C (Applied Statistics), Vol. 22, No. 1 (1973), p. 133."
-
AVERAGE
public static final Rank.TiesMethod AVERAGE
-
FIRST
public static final Rank.TiesMethod FIRST
-
LAST
public static final Rank.TiesMethod LAST
-
RANDOM
public static final Rank.TiesMethod RANDOM
-
MAX
public static final Rank.TiesMethod MAX
-
MIN
public static final Rank.TiesMethod MIN
-
-
Method Detail
-
values
public static Rank.TiesMethod[] 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 (Rank.TiesMethod c : Rank.TiesMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Rank.TiesMethod 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
-
-