Struct rand_distr::InverseGaussian
source · [−]pub struct InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,{ /* private fields */ }
Expand description
Implementations
sourceimpl<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
sourceimpl<F: Clone> Clone for InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
impl<F: Clone> Clone for InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
sourcefn clone(&self) -> InverseGaussian<F>
fn clone(&self) -> InverseGaussian<F>
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<F: Debug> Debug for InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
impl<F: Debug> Debug for InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
sourceimpl<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>,
sourcefn 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.sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>ⓘNotable traits for DistIter<D, R, T>impl<D, R, T> Iterator for DistIter<D, R, T>where
D: Distribution<T>,
R: Rng, type Item = T;
where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>ⓘNotable traits for DistIter<D, R, T>impl<D, R, T> Iterator for DistIter<D, R, T>where
D: Distribution<T>,
R: Rng, type Item = T;
where
R: Rng,
D: Distribution<T>,
R: Rng, type Item = T;
Create an iterator that generates random values of
T
, using rng
as
the source of randomness. Read moreimpl<F: Copy> Copy for InverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
Auto Trait Implementations
impl<F> RefUnwindSafe for InverseGaussian<F>where
F: RefUnwindSafe,
impl<F> Send for InverseGaussian<F>where
F: Send,
impl<F> Sync for InverseGaussian<F>where
F: Sync,
impl<F> Unpin for InverseGaussian<F>where
F: Unpin,
impl<F> UnwindSafe for InverseGaussian<F>where
F: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more