Class RegularizedGamma.P

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

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

    Constructors 
    Constructor Description
    P()  
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • P

      public P()
  • Method Details

    • value

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

      public static double value​(double a, double x, double epsilon, int maxIterations)
      Computes the regularized gamma function \( 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:
      \( P(a, x) \).