Class LogGamma1p


  • final class LogGamma1p
    extends java.lang.Object
    Function \( \ln \Gamma(1 + x) \). Class is immutable.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LogGamma1p()
      Private constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double value​(double x)
      Computes the function \( \ln \Gamma(1 + x) \) for \( -0.5 \leq x \leq 1.5 \).
      • Methods inherited from class java.lang.Object

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

      • LogGamma1p

        private LogGamma1p()
        Private constructor.
    • Method Detail

      • value

        public static double value​(double x)
        Computes the function \( \ln \Gamma(1 + x) \) for \( -0.5 \leq x \leq 1.5 \). This implementation is based on the double precision implementation in the NSWC Library of Mathematics Subroutines, DGMLN1.
        Parameters:
        x - Argument.
        Returns:
        \( \ln \Gamma(1 + x) \)
        Throws:
        java.lang.IllegalArgumentException - if x < -0.5 or x > 1.5.