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