Struct rand::distributions::Normal [−][src]
pub struct Normal { /* fields omitted */ }
👎 Deprecated since 0.7.0:
moved to rand_distr crate
Expand description
The normal distribution N(mean, std_dev**2)
.
This uses the ZIGNOR variant of the Ziggurat method, see StandardNormal
for more details.
Note that StandardNormal
is an optimised implementation for mean 0, and
standard deviation 1.
Implementations
Trait Implementations
Generate a random value of T
, using rng
as the source of randomness.
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
Auto Trait Implementations
impl RefUnwindSafe for Normal
impl UnwindSafe for Normal
Blanket Implementations
Mutably borrows from an owned value. Read more