public class GammaLanczos extends AbstractUnivariateRealFunction implements Gamma
BigDecimal
.Function.EvaluationException
Constructor and Description |
---|
GammaLanczos()
Construct an instance of a Gamma function, computed using the Lanczos approximation.
|
GammaLanczos(double g,
int n,
int scale)
Construct an instance of a Gamma function, computed using the Lanczos approximation.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double x)
Evaluate \(\Gamma(z) = \int_0^\infty e^{-t} t^{z-1} dt\).
|
evaluate
dimensionOfDomain, dimensionOfRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dimensionOfDomain, dimensionOfRange
public GammaLanczos()
public GammaLanczos(double g, int n, int scale)
g = 607.0 / 128.0;
n = 15;
scale = 30;
g
- gn
- nscale
- precisionpublic double evaluate(double x)
Gamma
evaluate
in interface UnivariateRealFunction
evaluate
in interface Gamma
x
- xCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.