public class GammaLanczosQuick extends UnivariateRealFunction implements Gamma
double.Function.EvaluationException| Constructor and Description |
|---|
GammaLanczosQuick()
Construct an instance of a Gamma function, computed using the Lanczos approximation.
|
GammaLanczosQuick(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 GammaLanczosQuick()
public GammaLanczosQuick(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