public final class GammaFun extends Object
Implementation:
Some code taken and adapted from the Java 2D Graph Package 2.4, which in turn is a port from the Cephes 2.2 Math Library (C). Most Cephes code (missing from the 2D Graph Package) directly ported.| Modifier and Type | Method and Description |
|---|---|
static double |
digamma(double x)
Returns the value of the logarithmic derivative of the Gamma
function
psi(x) = Gamma’(x) / Gamma(x). |
static double |
gamma(double x)
Returns the Gamma function of the argument.
|
static double |
incompleteGamma(double a,
double x)
Returns the Incomplete Gamma function.
|
static double |
incompleteGammaComplement(double a,
double x)
Returns the Complemented Incomplete Gamma function.
|
static double |
lnGamma(double x)
Returns the natural logarithm of the gamma function.
|
static double |
trigamma(double x)
Returns the value of the trigamma function
d(psi(x))/dx, the
derivative of the digamma(double) function, evaluated at
x. |
public static double gamma(double x)
x - x valuepublic static double lnGamma(double x)
x - x valuepublic static double incompleteGamma(double a,
double x)
a - the parameter of the gamma distribution.x - the integration end point.public static double incompleteGammaComplement(double a,
double x)
a - the parameter of the gamma distribution.x - the integration start point.public static double digamma(double x)
psi(x) = Gamma’(x) / Gamma(x).x - x valuepublic static double trigamma(double x)
d(psi(x))/dx, the
derivative of the digamma(double) function, evaluated at
x.x - x valueCopyright © 2022. All rights reserved.