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.impl<F> Copy for InverseGaussian<F>where F: Float + Copy, 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more