peroxide::statistics::rand

Function ziggurat

Source
pub fn ziggurat(rng: &mut ThreadRng, sigma: f64) -> f64
Expand description

Gaussian random numbers using the Ziggurat Method

The code is based on a C implementation by Jochen Voss.