Struct rand::distributions::gamma::StudentT
[−]
[src]
pub struct StudentT { /* fields omitted */ }
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]
pub fn new(n: f64) -> StudentT
[src]
Create a new Student t distribution with n
degrees of
freedom. Panics if n <= 0
.
Trait Implementations
impl Debug for StudentT
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Copy for StudentT
[src]
impl IndependentSample<f64> for StudentT
[src]
fn ind_sample<R>(&self, rng: &mut R) -> f64 where
R: Rng,
[src]
R: Rng,
Generate a random value.
impl Clone for StudentT
[src]
fn clone(&self) -> StudentT
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more