Package cern.jet.random
Class Fun
- java.lang.Object
-
- cern.jet.random.Fun
-
class Fun extends java.lang.ObjectContains various mathematical helper methods. Implementation: High performance implementation.- This is a port of gen_fun.cpp from the C-RAND / WIN-RAND library.
- Version:
- 1.0, 09/24/99
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFun()Makes this class non instantiable, but still let's others inherit from it.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static double_fkt_value(double lambda, double z1, double z2, double x_value)static doublebessel2_fkt(double lambda, double beta)static doublebessi0(double x)Modified Bessel Functions of First Kind - Order 0.static doublebessi1(double x)Modified Bessel Functions of First Kind - Order 1.private static doublecosh(double x)static longfactorial(int n)Returns n!.private static doublefkt2_value(double lambda, double beta, double x_value)static doublegamma(double x)Returns the gamma function gamma(x).static doublelogGamma(double x)Returns a quick approximation of log(gamma(x)).
-
-
-
Method Detail
-
_fkt_value
private static double _fkt_value(double lambda, double z1, double z2, double x_value)
-
bessel2_fkt
public static double bessel2_fkt(double lambda, double beta)
-
bessi0
public static double bessi0(double x)
Modified Bessel Functions of First Kind - Order 0.
-
bessi1
public static double bessi1(double x)
Modified Bessel Functions of First Kind - Order 1.
-
factorial
public static long factorial(int n)
Returns n!.
-
fkt2_value
private static double fkt2_value(double lambda, double beta, double x_value)
-
cosh
private static double cosh(double x)
-
gamma
public static double gamma(double x)
Returns the gamma function gamma(x).
-
logGamma
public static double logGamma(double x)
Returns a quick approximation of log(gamma(x)).
-
-