Class LogGamma

All Implemented Interfaces:
Function<Vector,Double>, RealScalarFunction, UnivariateRealFunction

public class LogGamma extends AbstractUnivariateRealFunction
The log-Gamma function, \(\log (\Gamma(z))\), for positive real numbers, is the log of the Gamma function.
See Also:
  • Constructor Details

    • LogGamma

      public LogGamma(LogGamma.Method method, Lanczos lanczos)
      Construct an instance of log-Gamma.
      Parameters:
      method - the Lanczos computation to use
      lanczos - the Lanczos approximation to use
    • LogGamma

      public LogGamma()
      Construct an instance of log-Gamma.
  • Method Details

    • evaluate

      public double evaluate(double x)
      Evaluate the log of the Gamma function in the positive real domain.
      Parameters:
      x - a real number > 0
      Returns:
      \(\log (\Gamma(z))\)