Function cmb_random_weibull

Function Documentation

static inline double cmb_random_weibull(const double shape, const double scale)

Weibull distribution on [0, oo) with parameters shape and scale, where shape > 0 and scale > 0.

Generalizes the exponential distribution, typically used for component lifetimes and similar durations. Failure rates increase with time for shape < 1, decrease with time for shape > 1. Equal to exponential (memoryless, constant failure rate) with mean scale when shape = 1.0. Looks similar to a normal distribution for shape around 4.

Also used for wind speed simulation, often with shape around 2 and scale somewhere around 5 to 15.

See also https://en.wikipedia.org/wiki/Weibull_distribution