Package cern.jet.stat
Class Gamma
java.lang.Object
cern.jet.math.Constants
cern.jet.stat.Gamma
Gamma and Beta functions.
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.
Implementation:
- Version:
- 0.9, 22-Jun-99
- Author:
- wolfgang.hoschek@cern.ch
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGamma()Makes this class non instantiable, but still let's others inherit from it. -
Method Summary
Modifier and TypeMethodDescriptionstatic doublebeta(double a, double b) Returns the beta function of the arguments.static doublegamma(double x) Returns the Gamma function of the argument.static doubleincompleteBeta(double aa, double bb, double xx) Returns the Incomplete Beta Function evaluated from zero to xx; formerly named ibeta.static doubleincompleteGamma(double a, double x) Returns the Incomplete Gamma function; formerly named igamma.static doubleincompleteGammaComplement(double a, double x) Returns the Complemented Incomplete Gamma function; formerly named igamc.static doublelogGamma(double x) Returns the natural logarithm of the gamma function; formerly named lgamma.
-
Constructor Details
-
Gamma
protected Gamma()Makes this class non instantiable, but still let's others inherit from it.
-
-
Method Details
-
beta
Returns the beta function of the arguments.- - | (a) | (b) beta( a, b ) = -----------. - | (a+b)- Throws:
ArithmeticException
-
gamma
Returns the Gamma function of the argument.- Throws:
ArithmeticException
-
incompleteBeta
Returns the Incomplete Beta Function evaluated from zero to xx; formerly named ibeta.- Parameters:
aa- the alpha parameter of the beta distribution.bb- the beta parameter of the beta distribution.xx- the integration end point.- Throws:
ArithmeticException
-
incompleteGamma
Returns the Incomplete Gamma function; formerly named igamma.- Parameters:
a- the parameter of the gamma distribution.x- the integration end point.- Throws:
ArithmeticException
-
incompleteGammaComplement
Returns the Complemented Incomplete Gamma function; formerly named igamc.- Parameters:
a- the parameter of the gamma distribution.x- the integration start point.- Throws:
ArithmeticException
-
logGamma
Returns the natural logarithm of the gamma function; formerly named lgamma.- Throws:
ArithmeticException
-