Math utilities.
Type Params | Return Type | Name and description |
---|---|---|
|
static double |
distance(double[] p1, double[] p2) Computes the distance between two points. |
|
static double |
erf(double x) Error function. |
|
static double |
erfc(double x) Complementary error function. |
|
static double |
erfcinv(double x) Inverse complementary error function. |
|
static double |
erfinv(double x) Inverse error function. |
Computes the distance between two points. If the dimensions of p1 and p2 are unequal, this method returns a NaN.
p1
- coordinates of point 1p2
- coordinates of point 2Error function. Approximation based on Press et al, Numerical Recipes in Fortran 77: The Art of Scientific Computing (1992), p214.
x
- real argumentComplementary error function. Approximation based on Press et al, Numerical Recipes in Fortran 77: The Art of Scientific Computing (1992), p214.
x
- real argumentInverse complementary error function. Approximation based on Giles (2010).
x
- argument between 0 and 2Inverse error function. Approximation based on Giles (2010).
x
- argument between -1 and 1