2.1.24.5.3.12 wblinv


Description

computes the inverse Weibull cumulative distribution function

Syntax

double wblinv( const double p, double a, double b, int * nFail = NULL )

Parameters

p
[input]probability. .
a
[input] The scale parameter, a, of the required Weibull distribution, must be positive.
b
[input] The shape parameter, b, of the required Weibull distribution, must be positive.
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 Weibull cumulative distribution function for probability, p

Examples

EX1

void wblinv_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, wblinv(x[ii], a, b));
}

Remark

See Also

wblcdf

Header to Include

origin.h

Reference