Trait probability::distribution::Discrete[][src]

pub trait Discrete: Distribution {
    fn mass(&self, _: Self::Value) -> f64;
}

A discrete distribution.

Required methods

fn mass(&self, _: Self::Value) -> f64[src]

Compute the probability mass function.

Loading content...

Implementors

impl Discrete for Bernoulli[src]

impl Discrete for Binomial[src]

fn mass(&self, x: usize) -> f64[src]

Compute the probability mass function.

For large n, a saddle-point expansion is used for more accurate computation.

References

  1. C. Loader, “Fast and Accurate Computation of Binomial Probabilities,”

impl Discrete for Categorical[src]

Loading content...