Struct rand_distr::Beta [−][src]
pub struct Beta<N> { /* fields omitted */ }
The Beta distribution with shape parameters alpha
and beta
.
Example
use rand_distr::{Distribution, Beta}; let beta = Beta::new(2.0, 5.0).unwrap(); let v = beta.sample(&mut rand::thread_rng()); println!("{} is from a Beta(2, 5) distribution", v);
Implementations
impl<N: Float> Beta<N> where
StandardNormal: Distribution<N>,
Exp1: Distribution<N>,
Open01: Distribution<N>,
[src]
impl<N: Float> Beta<N> where
StandardNormal: Distribution<N>,
Exp1: Distribution<N>,
Open01: Distribution<N>,
[src]Trait Implementations
impl<N: Float> Distribution<N> for Beta<N> where
StandardNormal: Distribution<N>,
Exp1: Distribution<N>,
Open01: Distribution<N>,
[src]
impl<N: Float> Distribution<N> for Beta<N> where
StandardNormal: Distribution<N>,
Exp1: Distribution<N>,
Open01: Distribution<N>,
[src]impl<N: Copy> Copy for Beta<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for Beta<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Beta<N> where
N: Send,
N: Send,
impl<N> Sync for Beta<N> where
N: Sync,
N: Sync,
impl<N> Unpin for Beta<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Beta<N> where
N: UnwindSafe,
N: UnwindSafe,