Struct rand::distributions::StudentT [−][src]
The Student t distribution, t(nu)
, where nu
is the degrees of
freedom.
Example
use rand::distributions::{StudentT, IndependentSample}; let t = StudentT::new(11.0); let v = t.ind_sample(&mut rand::thread_rng()); println!("{} is from a t(11) distribution", v)
Methods
impl StudentT
[src]
[−]
impl StudentT
pub fn new(n: f64) -> StudentT
[src]
[−]
pub fn new(n: f64) -> StudentT
Create a new Student t distribution with n
degrees of
freedom. Panics if n <= 0
.
Trait Implementations
impl IndependentSample<f64> for StudentT
[src]
[+]
impl IndependentSample<f64> for StudentT
impl Copy for StudentT
[src]
impl Copy for StudentT
impl Clone for StudentT
[src]
[+]
impl Clone for StudentT
impl Sample<f64> for StudentT
[src]
[+]
impl Sample<f64> for StudentT
impl Debug for StudentT
[src]
[+]
impl Debug for StudentT