Package org.apache.commons.numbers.gamma
Class LogGammaSum
java.lang.Object
org.apache.commons.numbers.gamma.LogGammaSum
Computes \( \log_e(\Gamma(a+b)) \).
This class is immutable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static doublevalue(double a, double b) Computes the value of log Γ(a + b) for 1 ≤ a, b ≤ 2.
-
Constructor Details
-
LogGammaSum
private LogGammaSum()Private constructor.
-
-
Method Details
-
value
static double value(double a, double b) Computes the value of log Γ(a + b) for 1 ≤ a, b ≤ 2. Based on the NSWC Library of Mathematics Subroutines implementation,DGSMLN.- Parameters:
a- First argument.b- Second argument.- Returns:
- the value of
log(Gamma(a + b)). - Throws:
IllegalArgumentException- ifaorbis lower than 1 or larger than 2.
-