public static final class RegularizedGamma.Q extends Object
\[ Q(a,x) = 1 - P(a,x) = \frac{\Gamma(a,x)}{\Gamma(a)} = \frac{1}{\Gamma(a)} \int_x^{\infty} t^{a-1}\,e^{-t}\,dt \]
Modifier and Type | Method and Description |
---|---|
static double |
derivative(double a,
double x)
Computes the derivative of the upper regularized gamma function \( Q(a, x) \).
|
static double |
value(double a,
double x)
Computes the upper regularized gamma function \( Q(a, x) \).
|
static double |
value(double a,
double x,
double epsilon,
int maxIterations)
Computes the upper regularized gamma function \( Q(a, x) \).
|
public static double value(double a, double x)
a
- Argument.x
- Argument.ArithmeticException
- if the series evaluation fails to converge.public static double value(double a, double x, double epsilon, int maxIterations)
a
- Argument.x
- Argument.epsilon
- Tolerance in series evaluation.maxIterations
- Maximum number of iterations in series evaluation.ArithmeticException
- if the series evaluation fails to converge.public static double derivative(double a, double x)
\[ \frac{\delta}{\delta x} Q(a,x) = -\frac{e^{-x} x^{a-1}}{\Gamma(a)} \]
This function has uses in some statistical distributions.
a
- Argument.x
- Argument.Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.