Struct rand_distr::Weibull [−][src]
pub struct Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>, { /* fields omitted */ }
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
impl<F> Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]
impl<F> Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]Trait Implementations
impl<F: Clone> Clone for Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]
impl<F: Clone> Clone for Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]impl<F: Debug> Debug for Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]
impl<F: Debug> Debug for Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]impl<F> Distribution<F> for Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]
impl<F> Distribution<F> for Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]impl<F: Copy> Copy for Weibull<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]
F: Float,
OpenClosed01: Distribution<F>,
Auto Trait Implementations
impl<F> RefUnwindSafe for Weibull<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for Weibull<F> where
F: Send,
F: Send,
impl<F> Sync for Weibull<F> where
F: Sync,
F: Sync,
impl<F> Unpin for Weibull<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Weibull<F> where
F: UnwindSafe,
F: UnwindSafe,