| java.lang.Object org.apache.commons.math.special.Gamma
Gamma | public class Gamma implements Serializable(Code) | | This is a utility class that provides computation methods related to the
Gamma family of functions.
version: $Revision: 233121 $ $Date: 2005-08-16 21:41:02 -0700 (Tue, 16 Aug 2005) $ |
Method Summary | |
public static double | logGamma(double x) Returns the natural logarithm of the gamma function Γ(x).
The implementation of this method is based on:
Parameters: x - the value. | public static double | regularizedGammaP(double a, double x) Returns the regularized gamma function P(a, x).
Parameters: a - the a parameter. Parameters: x - the value. | public static double | regularizedGammaP(double a, double x, double epsilon, int maxIterations) Returns the regularized gamma function P(a, x).
The implementation of this method is based on:
Parameters: a - the a parameter. Parameters: x - the value. Parameters: epsilon - When the absolute value of the nth item in theseries is less than epsilon the approximation ceasesto calculate further elements in the series. Parameters: maxIterations - Maximum number of "iterations" to complete. | public static double | regularizedGammaQ(double a, double x) Returns the regularized gamma function Q(a, x) = 1 - P(a, x).
Parameters: a - the a parameter. Parameters: x - the value. | public static double | regularizedGammaQ(double a, double x, double epsilon, int maxIterations) Returns the regularized gamma function Q(a, x) = 1 - P(a, x).
The implementation of this method is based on:
Parameters: a - the a parameter. Parameters: x - the value. Parameters: epsilon - When the absolute value of the nth item in theseries is less than epsilon the approximation ceasesto calculate further elements in the series. Parameters: maxIterations - Maximum number of "iterations" to complete. |
logGamma | public static double logGamma(double x)(Code) | | Returns the natural logarithm of the gamma function Γ(x).
The implementation of this method is based on:
Parameters: x - the value. log(Γ(x)) |
regularizedGammaP | public static double regularizedGammaP(double a, double x) throws MathException(Code) | | Returns the regularized gamma function P(a, x).
Parameters: a - the a parameter. Parameters: x - the value. the regularized gamma function P(a, x) throws: MathException - if the algorithm fails to converge. |
regularizedGammaP | public static double regularizedGammaP(double a, double x, double epsilon, int maxIterations) throws MathException(Code) | | Returns the regularized gamma function P(a, x).
The implementation of this method is based on:
Parameters: a - the a parameter. Parameters: x - the value. Parameters: epsilon - When the absolute value of the nth item in theseries is less than epsilon the approximation ceasesto calculate further elements in the series. Parameters: maxIterations - Maximum number of "iterations" to complete. the regularized gamma function P(a, x) throws: MathException - if the algorithm fails to converge. |
regularizedGammaQ | public static double regularizedGammaQ(double a, double x) throws MathException(Code) | | Returns the regularized gamma function Q(a, x) = 1 - P(a, x).
Parameters: a - the a parameter. Parameters: x - the value. the regularized gamma function Q(a, x) throws: MathException - if the algorithm fails to converge. |
regularizedGammaQ | public static double regularizedGammaQ(double a, double x, double epsilon, int maxIterations) throws MathException(Code) | | Returns the regularized gamma function Q(a, x) = 1 - P(a, x).
The implementation of this method is based on:
Parameters: a - the a parameter. Parameters: x - the value. Parameters: epsilon - When the absolute value of the nth item in theseries is less than epsilon the approximation ceasesto calculate further elements in the series. Parameters: maxIterations - Maximum number of "iterations" to complete. the regularized gamma function P(a, x) throws: MathException - if the algorithm fails to converge. |
|
|