2.1.24.5.1.13 ncchi2cdf


Description

Noncentral Chi-Square cdf

Syntax

double ncchi2cdf( const double dX, double df, double lambda, int * nFail = NULL )

Parameters

dX
[input] deviation from the non-central Chi-Square distribution
df
[input] degrees of freedom
lambda
[input] the non-centrality parameter
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 Non-central Chi Square cdf

Examples

EX1

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

Remark

See Also

Header to Include

origin.h

Reference