Struct rand_extra::RealNormal
[−]
[src]
pub struct RealNormal<A> { /* fields omitted */ }
Normal distribution for real numbers
Methods
impl<A> RealNormal<A>
[src]
Trait Implementations
impl<A: Clone> Clone for RealNormal<A>
[src]
fn clone(&self) -> RealNormal<A>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<A: Copy> Copy for RealNormal<A>
[src]
impl Sample<f64> for RealNormal<f64>
[src]
fn sample<R>(&mut self, rng: &mut R) -> f64 where
R: Rng,
R: Rng,
Generate a random value of Support
, using rng
as the source of randomness. Read more
impl IndependentSample<f64> for RealNormal<f64>
[src]
fn ind_sample<R>(&self, rng: &mut R) -> f64 where
R: Rng,
R: Rng,
Generate a random value.
impl Sample<f32> for RealNormal<f32>
[src]
fn sample<R>(&mut self, rng: &mut R) -> f32 where
R: Rng,
R: Rng,
Generate a random value of Support
, using rng
as the source of randomness. Read more
impl IndependentSample<f32> for RealNormal<f32>
[src]
fn ind_sample<R>(&self, rng: &mut R) -> f32 where
R: Rng,
R: Rng,
Generate a random value.