Returns the incomplete gamma function P(a,x) or its complement 1.0 - P(a,x) for for the parameter a and value x.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public static double IncompleteGamma(
	double a,
	double x,
	bool complement
)
Visual Basic (Declaration)
Public Shared Function IncompleteGamma ( _
	a As Double, _
	x As Double, _
	complement As Boolean _
) As Double
Visual C++
public:
static double IncompleteGamma(
	double a, 
	double x, 
	bool complement
)

Parameters

a
Type: System..::.Double
A parameter describing the incomplete gamma function.
x
Type: System..::.Double
A point on the x-axis.
complement
Type: System..::.Boolean
If true the complement, 1.0 - P(a,x) will be computed. otherwise P(a,x) will be computed.

Return Value

The integral from x to infinity of (t^(a-1) * e^-t)dt.

See Also