pub struct StudentT { /* private fields */ }
Expand description
The Student t distribution, t(nu)
, where nu
is the degrees of
freedom.
Example
use sgx_rand::distributions::{StudentT, IndependentSample};
let t = StudentT::new(11.0);
let v = t.ind_sample(&mut sgx_rand::thread_rng());
println!("{} is from a t(11) distribution", v)
Implementations
Trait Implementations
sourceimpl IndependentSample<f64> for StudentT
impl IndependentSample<f64> for StudentT
sourcefn ind_sample<R: Rng>(&self, rng: &mut R) -> f64
fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64
Generate a random value.
impl Copy for StudentT
Auto Trait Implementations
impl RefUnwindSafe for StudentT
impl Send for StudentT
impl Sync for StudentT
impl Unpin for StudentT
impl UnwindSafe for StudentT
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more