Struct rand_distr::InverseGaussian
source · pub struct InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,{ /* private fields */ }
Expand description
Implementations§
source§impl<F> InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
impl<F> InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
sourcepub fn new(mean: F, shape: F) -> Result<InverseGaussian<F>, Error>
pub fn new(mean: F, shape: F) -> Result<InverseGaussian<F>, Error>
Construct a new InverseGaussian
distribution with the given mean and
shape.
Trait Implementations§
source§impl<F> Clone for InverseGaussian<F>where
F: Float + Clone,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
impl<F> Clone for InverseGaussian<F>where
F: Float + Clone,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
source§fn clone(&self) -> InverseGaussian<F>
fn clone(&self) -> InverseGaussian<F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F> Debug for InverseGaussian<F>where
F: Float + Debug,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
impl<F> Debug for InverseGaussian<F>where
F: Float + Debug,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
source§impl<F> Distribution<F> for InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
impl<F> Distribution<F> for InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
source§fn sample<R>(&self, rng: &mut R) -> Fwhere
R: Rng + ?Sized,
fn sample<R>(&self, rng: &mut R) -> Fwhere
R: Rng + ?Sized,
Generate a random value of
T
, using rng
as the source of randomness.