Trait TDist

Source
pub trait TDist {
    // Required methods
    fn t_pdf(&self, df: Self) -> Self;
    fn t_cdf(&self, df: isize) -> Self;
    fn t_cdf_inv(&self, df: isize) -> Self;
}
Expand description

Implementations of the student’s t distribution as a trait

Required Methods§

Source

fn t_pdf(&self, df: Self) -> Self

Student’s t probability density function

Source

fn t_cdf(&self, df: isize) -> Self

Student’s t cumulative distribution function

Source

fn t_cdf_inv(&self, df: isize) -> Self

Inverse of student’s t cumulative distribution function

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TDist for f64

Source§

fn t_pdf(&self, df: f64) -> f64

Source§

fn t_cdf(&self, df: isize) -> f64

Source§

fn t_cdf_inv(&self, df: isize) -> f64

Implementors§