Package DistLib
Class misc
java.lang.Object
DistLib.misc
Miscellaneous functions and values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublebeta(double a, double b) Value of the beta function evaluated with arguments a and b.static doublechebyshev_eval(double x, double[] a, int n) evaluate the n-term Chebyshev seriesstatic doublechoose(double n, double k) binomial coefficientstatic doubled1mach(int i) machine dependant constantsstatic doublefastchoose(double n, double k) static doublefcube(double x) static doublefmax2(double x, double y) static doublefmin2(double x, double y) static doublefmod(double x, double y) static doublefprec(double x, double digits) static doublefround(double x, double digits) static doublefsign(double x, double y) static doublefsquare(double x) static doubleftrunc(double x) Truncation toward zero.static doublegamma_cody(double x) static doublegammafn(double x) static inti1mach(int i) static doublelbeta(double a, double b) static doublelchoose(double n, double k) static doublelfastchoose(double n, double k) static doublelgammacor(double x) static doublelgammafn(double x) static doublelogrelerr(double x) static doublesign(double x)
-
Constructor Details
-
misc
public misc()
-
-
Method Details
-
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)
-