Package org.apache.commons.numbers.gamma
Class LogGammaSum
- java.lang.Object
-
- org.apache.commons.numbers.gamma.LogGammaSum
-
final class LogGammaSum extends java.lang.Object
Computes \( \log_e(\Gamma(a+b)) \).This class is immutable.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
LogGammaSum()
Private constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static double
value(double a, double b)
Computes the value of log Γ(a + b) for 1 ≤ a, b ≤ 2.
-
-
-
Method Detail
-
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:
java.lang.IllegalArgumentException
- ifa
orb
is lower than 1 or larger than 2.
-
-