Trait probability::distribution::Distribution [−][src]
pub trait Distribution { type Value; fn distribution(&self, _: f64) -> f64; }
A distribution.
Associated Types
type Value
The type of outcomes.
Required Methods
fn distribution(&self, _: f64) -> f64
Compute the cumulative distribution function.
Implementors
impl Distribution for Bernoulli type Value = u8;
impl Distribution for Beta type Value = f64;
impl Distribution for Binomial type Value = usize;
impl Distribution for Categorical type Value = usize;
impl Distribution for Exponential type Value = f64;
impl Distribution for Gamma type Value = f64;
impl Distribution for Gaussian type Value = f64;
impl Distribution for Logistic type Value = f64;
impl Distribution for Lognormal type Value = f64;
impl Distribution for Triangular type Value = f64;
impl Distribution for Uniform type Value = f64;