2.1.24.5.3.1 betainv


Description

Inverse Beta cumulative distribution function

Syntax

double betainv( const double dP, double a, double b, int * nFail = NULL )

Parameters

dP
[input] the probability from the required beta distribution. .
a
[input] the first shape parameter, must be positive (a>0).
b
[input] the second shape parameter, must be positive (b>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 the value of inverse Beta cumulative distribution function for probability, dP

Examples

EX1

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

Remark

See Also

betacdf

Header to Include

origin.h

Reference