Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogGammaSum

        private LogGammaSum()
        Private constructor.
    • 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 - if a or b is lower than 1 or larger than 2.