Struct rand_distr::StudentT [−][src]
pub struct StudentT<N> { /* fields omitted */ }
The Student t distribution, t(nu)
, where nu
is the degrees of
freedom.
Example
use rand_distr::{StudentT, Distribution}; let t = StudentT::new(11.0).unwrap(); let v = t.sample(&mut rand::thread_rng()); println!("{} is from a t(11) distribution", v)
Implementations
impl<N: Float> StudentT<N> where
StandardNormal: Distribution<N>,
Exp1: Distribution<N>,
Open01: Distribution<N>,
[src]
impl<N: Float> StudentT<N> where
StandardNormal: Distribution<N>,
Exp1: Distribution<N>,
Open01: Distribution<N>,
[src]Trait Implementations
impl<N: Float> Distribution<N> for StudentT<N> where
StandardNormal: Distribution<N>,
Exp1: Distribution<N>,
Open01: Distribution<N>,
[src]
impl<N: Float> Distribution<N> for StudentT<N> where
StandardNormal: Distribution<N>,
Exp1: Distribution<N>,
Open01: Distribution<N>,
[src]impl<N: Copy> Copy for StudentT<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for StudentT<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for StudentT<N> where
N: Send,
N: Send,
impl<N> Sync for StudentT<N> where
N: Sync,
N: Sync,
impl<N> Unpin for StudentT<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for StudentT<N> where
N: UnwindSafe,
N: UnwindSafe,