Function rgsl::randist::gaussian::gaussian_ratio_method [] [src]

pub fn gaussian_ratio_method(r: &Rng, sigma: f64) -> f64

This function computes a Gaussian random variate using the alternative Marsaglia-Tsang ziggurat and Kinderman-Monahan-Leva ratio methods. The Ziggurat algorithm is the fastest available algorithm in most cases.