Trait probability::distribution::Discrete [−][src]
A discrete distribution.
Required methods
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
- C. Loader, “Fast and Accurate Computation of Binomial Probabilities,”