| Modifier and Type | Field and Description |
|---|---|
| private static final double | X_CRIT
The number |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static double | |
| public static double | Returns: erf(x2) - erf(x1)the first value x1, double the second value x2)Returns the difference between erf(x1) and erf(x2). |
| public static double | Returns: the complementary error function erfc(x)the value x)Returns the complementary error function. |
| public static double | |
| public static double |
| X_CRIT | back to summary |
|---|---|
| private static final double X_CRIT The number | |
| Erf | back to summary |
|---|---|
| private Erf() Default constructor. Prohibit instantiation. | |
| erf | back to summary |
|---|---|
| public static double erf(double x) Returns the error function. erf(x) = 2/√π 0∫x e-t2dt This implementation computes erf(x) using the
The value returned is always between -1 and 1 (inclusive).
If
| |
| erf | back to summary |
|---|---|
| public static double erf(double x1, double x2) Returns the difference between erf(x1) and erf(x2). The implementation uses either erf(double) or erfc(double) depending on which provides the most precise result.
| |
| erfc | back to summary |
|---|---|
| public static double erfc(double x) Returns the complementary error function. erfc(x) = 2/√π x∫∞ e-t2dt
This implementation computes erfc(x) using the
The value returned is always between 0 and 2 (inclusive).
If
| |
| erfcInv | back to summary |
|---|---|
| public static double erfcInv(final double x) Returns the inverse erfc.
| |
| erfInv | back to summary |
|---|---|
| public static double erfInv(final double x) Returns the inverse erf. This implementation is described in the paper: Approximating the erfinv function by Mike Giles, Oxford-Man Institute of Quantitative Finance, which was published in GPU Computing Gems, volume 2, 2010. The source code is available here.
| |