public final class Special
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double |
Binomial(int n,
int k)
Computes the binomial coefficients C(n,k).
|
static double |
BSpline(int n,
double x)
Computes the Basic Spline of order
|
static double |
Epslon(double x)
Estimates unit roundoff in quantities of size x.
|
static double |
Erf(double x)
Error function of the specified value.
|
static double |
Erfc(double value)
Complementary error function of the specified value.
|
static double |
Expm1(double x)
Compute exp(x) - 1 without loss of precision for small values of x.
|
static double |
Factorial(int n)
Computes the factorial of a number (n!).
|
static double |
Log1m(double x)
Computes log(1-x) without losing precision for small values of x.
|
static double |
Log1p(double x)
Computes log(1+x) without losing precision for small values of x.
|
static double |
LogBinomial(int n,
int k)
Computes the log binomial Coefficients Log[C(n,k)].
|
static double |
LogDiff(double lna,
double lnc)
Computes x + y without losing precision using ln(x) and ln(y).
|
static double |
LogFactorial(int n)
Returns the log factorial of a number (ln(n!))
|
static double |
LogSum(double lna,
double lnc)
Computes x + y without losing precision using ln(x) and ln(y).
|
static double |
LogSum(float lna,
float lnc)
Computes x + y without losing precision using ln(x) and ln(y).
|
static double |
P1evl(double x,
double[] coef,
int n)
Evaluates polynomial of degree N with assumption that coef[N] = 1.0
|
static double |
Polevl(double x,
double[] coef,
int n)
Evaluates polynomial of degree N.
|
static double |
Sign(double a,
double b)
Returns A with the sign of B.
|
public static double Erfc(double value)
value - Value.public static double Erf(double x)
x - Value.public static double Polevl(double x,
double[] coef,
int n)
x - Value.coef - Coefficient.n - Degree.public static double P1evl(double x,
double[] coef,
int n)
x - Value.coef - Coefficient.n - Degree.public static double BSpline(int n,
double x)
public static double Binomial(int n,
int k)
n - Coefficient.k - Coefficient.public static double LogBinomial(int n,
int k)
n - Coefficient.k - Coefficient.public static double LogFactorial(int n)
n - Number.public static double Factorial(int n)
n - Number.public static double Log1m(double x)
x - Value.public static double Log1p(double x)
x - Value.public static double Expm1(double x)
x - Value.public static double Epslon(double x)
x - Value.public static double Sign(double a,
double b)
a - Value.b - Value.public static double LogDiff(double lna,
double lnc)
lna - Value.lnc - Value.public static double LogSum(double lna,
double lnc)
lna - Value.lnc - Value.public static double LogSum(float lna,
float lnc)
lna - Value.lnc - Value.