Class LogGammaSum

java.lang.Object
org.apache.commons.numbers.gamma.LogGammaSum

final class LogGammaSum extends Object
Computes \( \log_e(\Gamma(a+b)) \).

This class is immutable.

  • 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 - if a or b is lower than 1 or larger than 2.