Struct rand_distr::Weibull [−][src]
pub struct Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>, { /* fields omitted */ }
Expand description
Samples floating-point numbers according to the Weibull distribution
Example
use rand::prelude::*; use rand_distr::Weibull; let val: f64 = thread_rng().sample(Weibull::new(1., 10.).unwrap()); println!("{}", val);
Implementations
Trait Implementations
Generate a random value of T
, using rng
as the source of randomness.
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for Weibull<F> where
F: RefUnwindSafe,
impl<F> UnwindSafe for Weibull<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V