Skip to main content

weibull_distribution

Function weibull_distribution 

Source
pub fn weibull_distribution<U>(
    uniform_generator: &mut U,
    k: f64,
    lambda: f64,
) -> f64
Expand description

A Weibull sample with shape k and scale lambda, λ (−ln(1 − u))^{1/k} by inversion (k = 1 is the exponential distribution with mean λ).