Class NormalInverse
- java.lang.Object
-
- com.singularsys.jep.functions.PostfixMathCommand
-
- com.singularsys.jep.functions.NaryFunction
-
- com.singularsys.extensions.statistical.distributions.NormalInverse
-
- All Implemented Interfaces:
PostfixMathCommandI
,java.io.Serializable
public class NormalInverse extends NaryFunction
Inverse Normal distribution. Accurate to about 7 digits. References Wikipedia Approximating the erfinv function by Mike Giles.- Author:
- rich
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
-
Constructor Summary
Constructors Constructor Description NormalInverse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
eval(java.lang.Object[] args)
Evaluate the functionstatic double
icdf(double p, double mu, double sd)
static double
ierf(double x)
static double
ierfCen(double x)
static double
iscdf(double z)
-
Methods inherited from class com.singularsys.jep.functions.NaryFunction
run
-
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
-
-
-
-
Method Detail
-
eval
public java.lang.Object eval(java.lang.Object[] args) throws EvaluationException
Description copied from class:NaryFunction
Evaluate the function- Specified by:
eval
in classNaryFunction
- Parameters:
args
- arguments to the function- Returns:
- value returned by the function
- Throws:
EvaluationException
- if the calculation cannot be performed
-
ierf
public static double ierf(double x)
-
ierfCen
public static double ierfCen(double x)
-
iscdf
public static double iscdf(double z)
-
icdf
public static double icdf(double p, double mu, double sd)
-
-