Skip to main content

exponential_distribution

Function exponential_distribution 

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

An exponential sample with rate lambda (mean 1/λ) by inversion, −ln(1 − u)/λ: the waiting time between events of a Poisson process.