pub fn rtnorm(gen: &mut Rng, a: f64, b: f64, mu: f64, sigma: f64) -> (f64, f64)
Expand description
Pseudorandom numbers from a truncated Gaussian distribution. The Gaussian has parameters mu and sigma and is truncated on the interval [a,b]. Returns the random variable x and its probability p(x).