Struct rand_distr::Pareto [−][src]
pub struct Pareto<F> where
F: Float,
OpenClosed01: Distribution<F>, { /* fields omitted */ }
Samples floating-point numbers according to the Pareto distribution
Example
use rand::prelude::*; use rand_distr::Pareto; let val: f64 = thread_rng().sample(Pareto::new(1., 2.).unwrap()); println!("{}", val);
Implementations
impl<F> Pareto<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]
impl<F> Pareto<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]Trait Implementations
impl<F: Clone> Clone for Pareto<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]
impl<F: Clone> Clone for Pareto<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]impl<F: Debug> Debug for Pareto<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]
impl<F: Debug> Debug for Pareto<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]impl<F> Distribution<F> for Pareto<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]
impl<F> Distribution<F> for Pareto<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]impl<F: Copy> Copy for Pareto<F> where
F: Float,
OpenClosed01: Distribution<F>,
[src]
F: Float,
OpenClosed01: Distribution<F>,
Auto Trait Implementations
impl<F> RefUnwindSafe for Pareto<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for Pareto<F> where
F: Send,
F: Send,
impl<F> Sync for Pareto<F> where
F: Sync,
F: Sync,
impl<F> Unpin for Pareto<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Pareto<F> where
F: UnwindSafe,
F: UnwindSafe,