|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.math.special.Gamma
This is a utility class that provides computation methods related to the Gamma family of functions.
| Method Summary | |
static double |
logGamma(double x)
Returns the natural logarithm of the gamma function Γ(x). |
static double |
regularizedGammaP(double a,
double x)
Returns the regularized gamma function P(a, x). |
static double |
regularizedGammaP(double a,
double x,
double epsilon,
int maxIterations)
Returns the regularized gamma function P(a, x). |
static double |
regularizedGammaQ(double a,
double x)
Returns the regularized gamma function Q(a, x) = 1 - P(a, x). |
static double |
regularizedGammaQ(double a,
double x,
double epsilon,
int maxIterations)
Returns the regularized gamma function Q(a, x) = 1 - P(a, x). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static double logGamma(double x)
x - the value.
public static double regularizedGammaP(double a,
double x)
throws MathException
a - the a parameter.x - the value.
MathException - if the algorithm fails to converge.
public static double regularizedGammaP(double a,
double x,
double epsilon,
int maxIterations)
throws MathException
a - the a parameter.x - the value.epsilon - When the absolute value of the nth item in the
series is less than epsilon the approximation ceases
to calculate further elements in the series.maxIterations - Maximum number of "iterations" to complete.
MathException - if the algorithm fails to converge.
public static double regularizedGammaQ(double a,
double x)
throws MathException
a - the a parameter.x - the value.
MathException - if the algorithm fails to converge.
public static double regularizedGammaQ(double a,
double x,
double epsilon,
int maxIterations)
throws MathException
a - the a parameter.x - the value.epsilon - When the absolute value of the nth item in the
series is less than epsilon the approximation ceases
to calculate further elements in the series.maxIterations - Maximum number of "iterations" to complete.
MathException - if the algorithm fails to converge.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||