[][src]Struct rand_distr::StudentT

pub struct StudentT<N> { /* fields omitted */ }

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)

Methods

impl<N: Float> StudentT<N> where
    StandardNormal: Distribution<N>,
    Exp1: Distribution<N>,
    Open01: Distribution<N>, 
[src]

pub fn new(n: N) -> Result<StudentT<N>, ChiSquaredError>[src]

Create a new Student t distribution with n degrees of freedom.

Trait Implementations

impl<N: Clone> Clone for StudentT<N>[src]

impl<N: Copy> Copy for StudentT<N>[src]

impl<N: Debug> Debug for StudentT<N>[src]

impl<N: Float> Distribution<N> for StudentT<N> where
    StandardNormal: Distribution<N>,
    Exp1: Distribution<N>,
    Open01: Distribution<N>, 
[src]

Auto Trait Implementations

impl<N> Unpin for StudentT<N> where
    N: Unpin

impl<N> Sync for StudentT<N> where
    N: Sync

impl<N> Send for StudentT<N> where
    N: Send

impl<N> UnwindSafe for StudentT<N> where
    N: UnwindSafe

impl<N> RefUnwindSafe for StudentT<N> where
    N: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,