Evaluates the inverse of the Gamma cumulative probability distribution function.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double Gamma(
	double p,
	double a
)
Visual Basic (Declaration)
Public Shared Function Gamma ( _
	p As Double, _
	a As Double _
) As Double
Visual C++
public:
static double Gamma(
	double p, 
	double a
)

Parameters

p
Type: System..::.Double
A double scalar value representing the probability at which the function is to be evaluated.
a
Type: System..::.Double
A double scalar value representing the shape parameter. This must be positive.

Return Value

A double scalar value. The probability that a Gamma random variable takes a value less than or equal to this returned value is p.

Remarks

Method InvCdf.Gamma evaluates the inverse distribution function of a Gamma random variable with shape parameter a, that is, it determines x={\rm{Gamma}}(p,a)), such that
P=\frac{1}{{\Gamma\left(a\right)}}
            \int_o^x{e^{-t}}t^{a-1}dt
where \Gamma(\cdot) is the Gamma function. The probability that the random variable takes a value less than or equal to x is P. See the Cdf.Gamma remarks for further discussion of the Gamma distribution.

InvCdf.Gamma uses bisection and modified regula falsi to invert the distribution function, which is evaluated using method Cdf.Gamma.

See Also