Class RegularizedGamma.Q

java.lang.Object
org.apache.commons.numbers.gamma.RegularizedGamma.Q
Enclosing class:
RegularizedGamma

public static class RegularizedGamma.Q
extends java.lang.Object
Creates the \( Q(a, x) \equiv 1 - P(a, x) \) regularized Gamma function. Class is immutable.
  • Constructor Summary

    Constructors 
    Constructor Description
    Q()  
  • Method Summary

    Modifier and Type Method Description
    static double value​(double a, double x)
    Computes the regularized gamma function \( Q(a, x) = 1 - P(a, x) \).
    static double value​(double a, double x, double epsilon, int maxIterations)
    Computes the regularized gamma function \( Q(a, x) = 1 - P(a, x) \).

    Methods inherited from class java.lang.Object

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

    • Q

      public Q()
  • Method Details

    • value

      public static double value​(double a, double x)
      Computes the regularized gamma function \( Q(a, x) = 1 - P(a, x) \).
      Parameters:
      a - Argument.
      x - Argument.
      Returns:
      \( Q(a, x) \).
    • value

      public static double value​(double a, double x, double epsilon, int maxIterations)
      Computes the regularized gamma function \( Q(a, x) = 1 - P(a, x) \). The implementation of this method is based on:
      Parameters:
      a - Argument.
      x - Argument.
      epsilon - Tolerance in continued fraction evaluation.
      maxIterations - Maximum number of iterations in continued fraction evaluation.
      Returns:
      \( Q(a, x) \).