2.1.24.5.3.2 chi2inv


Description

Inverse Chi Square cumulative distribution function

Syntax

double chi2inv( const double dP, double df, int * nFail = NULL )

Parameters

dP
[input] probability
df
[input] degrees of freedom, df>0.
nFail
[output] on successful exit, it returns the NAG error code NE_NOERROR; if an error or warning has been detected, then it returns the specific error or warning code.

Return

Returns inverse Chi Square cdf for probability, dP

Examples

EX1

void chi2inv_ex1()
{
	double x[]= {0.25, 0.5, 0.75};
	double df = 3;
	for(int ii = 0; ii<3; ii++)
		printf("%f	%f:	%f\n", x[ii], df, chi2inv(x[ii], df));
}

Remark

See Also

chi2cdf

Header to Include

origin.h

Reference