Function rgsl::randist::laplace::laplace
[−]
[src]
pub fn laplace(r: &Rng, a: f64) -> f64
This function returns a random variate from the Laplace distribution with width a. The distribution is,
p(x) dx = {1 \over 2 a} \exp(-|x/a|) dx
for -\infty < x < \infty.