SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.test.distribution.kolmogorov
Enum KolmogorovSmirnov.Side

java.lang.Object
  extended by java.lang.Enum<KolmogorovSmirnov.Side>
      extended by com.numericalmethod.suanshu.stats.test.distribution.kolmogorov.KolmogorovSmirnov.Side
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<KolmogorovSmirnov.Side>
Enclosing class:
KolmogorovSmirnov

public static enum KolmogorovSmirnov.Side
extends java.lang.Enum<KolmogorovSmirnov.Side>

the type of Kolmogorov-Smirnov statistic available


Enum Constant Summary
GREATER
          compute Dn+; check whether the CDF of a sample lies above the null hypothesis
LESS
          compute Dn-; check whether the CDF of a sample lies below the null hypothesis
TWO_SIDED
          compute Dn
 
Method Summary
static KolmogorovSmirnov.Side valueOf(java.lang.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.
 
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

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.