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