jhplot.math.num.special
Class Gamma
- java.lang.Object
-
- jhplot.math.num.special.Gamma
-
public final class Gamma extends java.lang.ObjectUtility class that provides methods related to the gamma family of functions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublelogGamma(double x)Returns the natural logarithm of the gamma function Γ(x) (1).static doubleregularizedGammaP(double a, double x)Returns the regularized gamma function P(a, x) (1).static doubleregularizedGammaQ(double a, double x)Returns the regularized gamma function Q(a, x) = 1 - P(a, x) (1).
-
-
-
Method Detail
-
logGamma
public static double logGamma(double x)
Returns the natural logarithm of the gamma function Γ(x) (1).
References:
- Eric W. Weisstein. "Gamma Function." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/GammaFunction.html
- Parameters:
x- the point of evaluation.- Returns:
- log(Γ(x))
-
regularizedGammaP
public static double regularizedGammaP(double a, double x) throws NumericExceptionReturns the regularized gamma function P(a, x) (1).
References:
- Eric W. Weisstein. "Regularized Gamma Function." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/RegularizedGammaFunction.html
- Parameters:
x- the evaluation point.a- the a parameter.- Returns:
- P(a, x)
- Throws:
NumericException- if the value could not be computed.
-
regularizedGammaQ
public static double regularizedGammaQ(double a, double x) throws NumericExceptionReturns the regularized gamma function Q(a, x) = 1 - P(a, x) (1).
References:
- Eric W. Weisstein. "Regularized Gamma Function." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/RegularizedGammaFunction.html
- Parameters:
x- the evaluation point.a- the a parameter.- Returns:
- Q(a, x)
- Throws:
NumericException- if the value could not be computed.
-
-
DMelt 3.0 © DataMelt by jWork.ORG