Package org.apache.commons.numbers.gamma
Class InverseErf
java.lang.Object
org.apache.commons.numbers.gamma.InverseErf
Inverse of the error function.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
value
(double x) Returns the inverse error function.
-
Constructor Details
-
InverseErf
private InverseErf()Private constructor.
-
-
Method Details
-
value
public static double value(double x) Returns the inverse error function.Special cases:
- If the argument is 0, then the result is 0.
- If the argument is 1, then the result is positive infinity.
- If the argument is -1, then the result is negative infinity.
- If the argument is outside the interval
[-1, 1]
, then the result is nan. - If the argument is nan, then the result is nan.
- Parameters:
x
- Value (in[-1, 1]
)- Returns:
- t such that
x =
Erf.value(t)
.
-