|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.math.distributions.Normal
public class Normal
Normal distribution functions.
Constructor Summary | |
---|---|
protected |
Normal()
Make class non-instantiable but inheritable. |
Method Summary | |
---|---|
static double |
normal(double z)
Compute probability for normal distribution. |
static double |
normalInverse(double p)
Compute percentage point for normal distribution. |
static double |
normalInverseBad(double p)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Normal()
Method Detail |
---|
public static double normal(double z)
z
- Percentage point of normal distribution.
Uses the relationship between the Normal and Gaussian Error distributions.
public static double normalInverse(double p) throws java.lang.IllegalArgumentException
p
- Probability value.
See Wichura, M. J. (1988) Algorithm AS 241: The Percentage Points of the Normal Distribution. Applied Statistics, 37, 477-484. The result is generally accurate to about 10-12 decimal digits. We improve the result from Wichura's estimate using two iterations of a Taylor series, generally resulting in about 15 decimal digits of accuracy. See Kennedy, W. J. and Gentle, James E. _Statistical Computing_, Marcel Dekker, 1980, pp. 94 for a discussion of the Taylor series improvement.
java.lang.IllegalArgumentException
public static double normalInverseBad(double p)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |