Class IncompleteGamma.Upper

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

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

\[ \Gamma(a,x) = \int_x^{\infty} t^{a-1}\,e^{-t}\,dt \]

Since:
1.1
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • value

      public static double value(double a, double x)
      Computes the upper 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 upper 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.