Class IncompleteGamma.Lower

java.lang.Object
org.apache.commons.numbers.gamma.IncompleteGamma.Lower
Enclosing class:
IncompleteGamma

public static final class IncompleteGamma.Lower extends Object
Lower incomplete Gamma function \( \gamma(a, x) \).

\[ \gamma(a,x) = \int_0^x t^{a-1}\,e^{-t}\,dt \]

Since:
1.1
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    No instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    value(double a, double x)
    Computes the lower incomplete gamma function \( \gamma(a, x) \).
    static double
    value(double a, double x, double epsilon, int maxIterations)
    Computes the lower incomplete gamma function \( \gamma(a, x) \).

    Methods inherited from class java.lang.Object

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

    • Lower

      private Lower()
      No instances.
  • Method Details

    • value

      public static double value(double a, double x)
      Computes the lower incomplete gamma function \( \gamma(a, x) \).
      Parameters:
      a - Argument.
      x - Argument.
      Returns:
      \( \gamma(a, x) \).
      Throws:
      ArithmeticException - if the series evaluation fails to converge.
    • value

      public static double value(double a, double x, double epsilon, int maxIterations)
      Computes the lower incomplete gamma function \( \gamma(a, x) \).
      Parameters:
      a - Argument.
      x - Argument.
      epsilon - Tolerance in series evaluation.
      maxIterations - Maximum number of iterations in series evaluation.
      Returns:
      \( \gamma(a, x) \).
      Throws:
      ArithmeticException - if the series evaluation fails to converge.