Enum KolmogorovSmirnov.Side
- java.lang.Object
-
- java.lang.Enum<KolmogorovSmirnov.Side>
-
- dev.nm.stat.test.distribution.kolmogorov.KolmogorovSmirnov.Side
-
- All Implemented Interfaces:
Serializable
,Comparable<KolmogorovSmirnov.Side>
- Enclosing class:
- KolmogorovSmirnov
public static enum KolmogorovSmirnov.Side extends Enum<KolmogorovSmirnov.Side>
the available types of the Kolmogorov-Smirnov statistic
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KolmogorovSmirnov.Side
valueOf(String name)
Returns the enum constant of this type with the specified name.static KolmogorovSmirnov.Side[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TWO_SIDED
public static final KolmogorovSmirnov.Side TWO_SIDED
compute Dn
-
GREATER
public static final KolmogorovSmirnov.Side GREATER
compute Dn+; check whether the cdf of a sample lies above the null hypothesis
-
LESS
public static final KolmogorovSmirnov.Side LESS
compute Dn-; check whether the cdf of a sample lies below the null hypothesis
-
-
Method Detail
-
values
public static KolmogorovSmirnov.Side[] 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 (KolmogorovSmirnov.Side c : KolmogorovSmirnov.Side.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KolmogorovSmirnov.Side 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
-
-