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 Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Private constructor.
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.