de.jstacs.utils
Enum ToolBox.TiedRanks

java.lang.Object
  extended by java.lang.Enum<ToolBox.TiedRanks>
      extended by de.jstacs.utils.ToolBox.TiedRanks
All Implemented Interfaces:
Serializable, Comparable<ToolBox.TiedRanks>
Enclosing class:
ToolBox

public static enum ToolBox.TiedRanks
extends Enum<ToolBox.TiedRanks>

Handling of tied ranks in ToolBox.rank(double[], TiedRanks).

Author:
Jan Grau

Enum Constant Summary
CONTIGUOUS
          Identical values obtain identical ranks.
IN_ORDER
          Identical values obtain different ranks.
SPORTS
          Identical values obtain identical ranks.
 
Method Summary
static ToolBox.TiedRanks valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ToolBox.TiedRanks[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IN_ORDER

public static final ToolBox.TiedRanks IN_ORDER
Identical values obtain different ranks. The ranks are assigned in the order of the input array.


SPORTS

public static final ToolBox.TiedRanks SPORTS
Identical values obtain identical ranks. If multiple values obtain identical ranks, the following rank is incremented by the multiplicity.


CONTIGUOUS

public static final ToolBox.TiedRanks CONTIGUOUS
Identical values obtain identical ranks. If multiple values obtain identical ranks, the following rank is incremented by one.

Method Detail

values

public static ToolBox.TiedRanks[] 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 (ToolBox.TiedRanks c : ToolBox.TiedRanks.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ToolBox.TiedRanks 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 name
NullPointerException - if the argument is null