Weibull Random Variate



Weibull Random Variate

The probability density function for a Weibull(a) distributed random variable X, f(x), is:
f(x) =
0for x ≤ 0
a x a-1 e -x a for x > 0

where the shape parameter, a, must be positive.

Function List

  • double Weibull_Random_Variate( double a )

    This function returns X where X is a random variate with the density given above. Note that a must be positive.

Source Code

C source code is available for this routine: