Function rgsl::randist::rayleigh::rayleigh [] [src]

pub fn rayleigh(r: &Rng, sigma: f64) -> f64
[]

This function returns a random variate from the Rayleigh distribution with scale parameter sigma. The distribution is,

p(x) dx = {x \over \sigma2} \exp(- x2/(2 \sigma2)) dx

for x > 0.