wblcdf

 

Contents

Description

Weibull cumulative distribution function

Syntax

double wblcdf( const double x, double a, double b, int * nFail = NULL )

Parameters

x
[input] value of the x variate.
a
[input] scale parameter, a, of the required Weibull distribution, must be positive( a>0 ).
b
[input] shape parameter, b, of the required Weibull distribution, 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

value of cdf of the Weibull distribution with scale parameter a and shape parameter b,

evaluated at the values in x

Examples

EX1

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

Remark

See Also

header to Include

origin.h

Reference