Struct std::rand::distributions::StudentT [] [src]

pub struct StudentT {
    chi: ChiSquared,
    dof: f64,
}
Unstable (rand)

: use rand from crates.io

The Student t distribution, t(nu), where nu is the degrees of freedom.

Fields

chi
Unstable (rand)

: use rand from crates.io

dof
Unstable (rand)

: use rand from crates.io

Methods

impl StudentT

fn new(n: f64) -> StudentT

Unstable (rand)

: use rand from crates.io

Create a new Student t distribution with n degrees of freedom. Panics if n <= 0.

Trait Implementations

impl Sample<f64> for StudentT

fn sample<R>(&mut self, rng: &mut R) -> f64 where R: Rng

impl IndependentSample<f64> for StudentT

fn ind_sample<R>(&self, rng: &mut R) -> f64 where R: Rng