SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.function.special
Enum CumulativeNormal.Method

java.lang.Object
  extended by java.lang.Enum<CumulativeNormal.Method>
      extended by com.numericalmethod.suanshu.analysis.function.special.CumulativeNormal.Method
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CumulativeNormal.Method>
Enclosing class:
CumulativeNormal

public static enum CumulativeNormal.Method
extends java.lang.Enum<CumulativeNormal.Method>

the methods available to compute the cumulative Normal


Enum Constant Summary
GAMMA
          Cumulative Normal can be written as a function of the gamma function.
HASTINGS
          HASTINGS is faster, but is less accurate.
MARSAGLIA
          MARSAGLIA is about 3 times slower, but is more accurate.
 
Method Summary
static CumulativeNormal.Method valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CumulativeNormal.Method[] 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

HASTINGS

public static final CumulativeNormal.Method HASTINGS
HASTINGS is faster, but is less accurate. It has a maximum absolute error < 7.5e-8.


MARSAGLIA

public static final CumulativeNormal.Method MARSAGLIA
MARSAGLIA is about 3 times slower, but is more accurate. It has a maximum relative error < 1e-15 for 0 < x < 6.23025, and relative error < 1e-12 for larger x.


GAMMA

public static final CumulativeNormal.Method GAMMA
Cumulative Normal can be written as a function of the gamma function. Not implemented.

Method Detail

values

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

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

valueOf

public static CumulativeNormal.Method 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.