Package org.ojalgo.function.special
Class GammaFunction.LanczosApproximation
- java.lang.Object
-
- org.ojalgo.function.special.GammaFunction.LanczosApproximation
-
- Enclosing class:
- GammaFunction
abstract static class GammaFunction.LanczosApproximation extends java.lang.Object
Lanczos approximation. The abritray constant is 7, and there are 9 coefficients used.http://en.wikipedia.org/wiki/Lanczos_approximation http://mathworld.wolfram.com/LanczosApproximation.html https://mrob.com/pub/ries/lanczos-gamma.html
-
-
Field Summary
Fields Modifier and Type Field Description private static double
A
Arbitrary constantprivate static double[]
C
Coefficientsprivate static double
LOG_SQRT_TWO_PI
-
Constructor Summary
Constructors Constructor Description LanczosApproximation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static double
gamma(double x)
(package private) static ComplexNumber
gamma(ComplexNumber z)
(package private) static double
logarithmic(double x)
(package private) static ComplexNumber
logarithmic(ComplexNumber z)
-
-
-
Method Detail
-
gamma
static ComplexNumber gamma(ComplexNumber z)
-
gamma
static double gamma(double x)
-
logarithmic
static ComplexNumber logarithmic(ComplexNumber z)
-
logarithmic
static double logarithmic(double x)
-
-