pub struct StudentT<N> { /* private fields */ }
Expand description
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§
Trait Implementations§
Source§impl<N: Float> Distribution<N> for StudentT<N>
impl<N: Float> Distribution<N> for StudentT<N>
impl<N: Copy> Copy for StudentT<N>
Auto Trait Implementations§
impl<N> Freeze for StudentT<N>where
N: Freeze,
impl<N> RefUnwindSafe for StudentT<N>where
N: RefUnwindSafe,
impl<N> Send for StudentT<N>where
N: Send,
impl<N> Sync for StudentT<N>where
N: Sync,
impl<N> Unpin for StudentT<N>where
N: Unpin,
impl<N> UnwindSafe for StudentT<N>where
N: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more