Package org.apache.commons.numbers.gamma
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
-
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:- Regularized Gamma Function, equation (1)
- Incomplete Gamma Function, equation (4).
- Confluent Hypergeometric Function of the First Kind, equation (1).
- Parameters:
a- Argument.x- Argument.epsilon- Tolerance in continued fraction evaluation.maxIterations- Maximum number of iterations in continued fraction evaluation.- Returns:
- \( P(a, x) \).
-