public class GammaLanczos extends UnivariateRealFunction 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 y = f(x).
|
dimensionOfDomain, dimensionOfRange, evaluatepublic 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)
UnivariateRealFunctionevaluate in interface Gammaevaluate in class UnivariateRealFunctionx - x