Package org.apache.commons.numbers.gamma
Class LanczosApproximation
- java.lang.Object
-
- org.apache.commons.numbers.gamma.LanczosApproximation
-
public final class LanczosApproximation extends Object
Lanczos approximation to the Gamma function. It is related to the Gamma function by the following equation where is the Lanczos constant. See equations (1) through (5), and Paul Godfrey's Note on the computation of the convergent Lanczos complex Gamma approximation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
g()
static double
value(double x)
Computes the Lanczos approximation.
-