Package DistLib
Class misc
- java.lang.Object
-
- DistLib.misc
-
public class misc extends java.lang.Object
Miscellaneous functions and values.
-
-
Constructor Summary
Constructors Constructor Description misc()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
beta(double a, double b)
Value of the beta function evaluated with arguments a and b.static double
chebyshev_eval(double x, double[] a, int n)
evaluate the n-term Chebyshev seriesstatic double
choose(double n, double k)
binomial coefficientstatic double
d1mach(int i)
machine dependant constantsstatic double
fastchoose(double n, double k)
static double
fcube(double x)
static double
fmax2(double x, double y)
static double
fmin2(double x, double y)
static double
fmod(double x, double y)
static double
fprec(double x, double digits)
static double
fround(double x, double digits)
static double
fsign(double x, double y)
static double
fsquare(double x)
static double
ftrunc(double x)
Truncation toward zero.static double
gamma_cody(double x)
static double
gammafn(double x)
static int
i1mach(int i)
static double
lbeta(double a, double b)
static double
lchoose(double n, double k)
static double
lfastchoose(double n, double k)
static double
lgammacor(double x)
static double
lgammafn(double x)
static double
logrelerr(double x)
static double
sign(double x)
-
-
-
Method Detail
-
beta
public static double beta(double a, double b)
Value of the beta function evaluated with arguments a and b. This routine is a translation into C of a Fortran subroutine by W. Fullerton of Los Alamos Scientific Laboratory. Some modifications have been made so that the routines conform to the IEEE 754 standard.
-
chebyshev_eval
public static double chebyshev_eval(double x, double[] a, int n)
evaluate the n-term Chebyshev series- Parameters:
x
-a
-n
-- Returns:
-
lfastchoose
public static double lfastchoose(double n, double k)
-
fastchoose
public static double fastchoose(double n, double k)
-
lchoose
public static double lchoose(double n, double k)
-
choose
public static double choose(double n, double k)
binomial coefficient- Parameters:
n
-k
-- Returns:
-
d1mach
public static double d1mach(int i)
machine dependant constants- Parameters:
i
-- Returns:
-
fcube
public static double fcube(double x)
-
fmax2
public static double fmax2(double x, double y)
-
fmin2
public static double fmin2(double x, double y)
-
fmod
public static double fmod(double x, double y)
-
fprec
public static double fprec(double x, double digits)
-
fround
public static double fround(double x, double digits)
-
fsign
public static double fsign(double x, double y)
-
fsquare
public static double fsquare(double x)
-
ftrunc
public static double ftrunc(double x)
Truncation toward zero.
-
gammafn
public static double gammafn(double x)
-
gamma_cody
public static double gamma_cody(double x)
-
i1mach
public static int i1mach(int i)
-
lbeta
public static double lbeta(double a, double b)
-
lgammafn
public static double lgammafn(double x)
-
lgammacor
public static double lgammacor(double x)
-
logrelerr
public static double logrelerr(double x)
-
sign
public static double sign(double x)
-
-