Package org.apache.commons.numbers.gamma
Class LogGamma
- java.lang.Object
 - 
- org.apache.commons.numbers.gamma.LogGamma
 
 
- 
public final class LogGamma extends Object
Natural logarithm of the absolute value of .This code has been adapted from the Boost
c++implementation<boost/math/special_functions/gamma.hpp>.- See Also:
 - Boost C++ Log Gamma functions
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublevalue(double x)Computes the function , the natural logarithm of the absolute value of .static doublevalue(double x, int[] sign)Computes the function , the natural logarithm of the absolute value of . 
 - 
 
- 
- 
Method Detail
- 
value
public static double value(double x)
Computes the function , the natural logarithm of the absolute value of .- Parameters:
 x- Argument.- Returns:
  , orNaNifx <= 0and is an integer.
 
- 
value
public static double value(double x, int[] sign)
Computes the function , the natural logarithm of the absolute value of .The sign output is set to 1 if the sign of gamma(x) is positive or zero; otherwise it is set to -1.
- Parameters:
 x- Argument.sign- Sign output. If a non-zero length the first indexsign[0]is set on output to the sign of gamma(z).- Returns:
  , orNaNifx <= 0and is an integer.- Since:
 - 1.1
 
 
 - 
 
 -