Function rgsl::randist::exponential::exponential [] [src]

pub fn exponential(r: &Rng, mu: f64) -> f64

This function returns a random variate from the exponential distribution with mean mu. The distribution is,

p(x) dx = {1 \over \mu} \exp(-x/\mu) dx

for x >= 0.