Struct rand_distr::NormalInverseGaussian
source · pub struct NormalInverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,{ /* private fields */ }
Expand description
Implementations§
source§impl<F> NormalInverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
impl<F> NormalInverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
sourcepub fn new(alpha: F, beta: F) -> Result<NormalInverseGaussian<F>, Error>
pub fn new(alpha: F, beta: F) -> Result<NormalInverseGaussian<F>, Error>
Construct a new NormalInverseGaussian
distribution with the given alpha (tail heaviness) and
beta (asymmetry) parameters.
Trait Implementations§
source§impl<F> Clone for NormalInverseGaussian<F>where
F: Float + Clone,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
impl<F> Clone for NormalInverseGaussian<F>where
F: Float + Clone,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
source§fn clone(&self) -> NormalInverseGaussian<F>
fn clone(&self) -> NormalInverseGaussian<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 NormalInverseGaussian<F>where
F: Float + Debug,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
impl<F> Debug for NormalInverseGaussian<F>where
F: Float + Debug,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
source§impl<F> Distribution<F> for NormalInverseGaussian<F>where
F: Float,
StandardNormal: Distribution<F>,
Standard: Distribution<F>,
impl<F> Distribution<F> for NormalInverseGaussian<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.