2.1.24.5.1.12 ncbetacdf


Description

computes the cdf with the lower tail of the non-central beta distribution.

Syntax

double ncbetacdf( const double dX, double a, double b, double lambda, int * nFail = NULL )

Parameters

dX
[intput]value of beta variate. must lie on the interval [0, 1];
a
[input] first shape parameter, a, of the required beta distribtution
b
[input] second shape parameter, b, of the required beta distribtution
lambda
[input] non-centrality parameter of the required beta distribution
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 value of cdf of the Non-central Beta distribution

Examples

EX1

void ncbetacdf_ex1()
{
	double x[]= {0.25, 0.5, 0.75};
	double a = 1.0, b =3, lamda = 10;
	for(int ii = 0; ii<3; ii++)
		printf("%f	%f	%f	%f:	%f\n", x[ii], a, b, lamda, ncbetacdf(x[ii], a, b, lamda));
}

Remark

See Also

Header to Include

origin.h

Reference