Trait rv::traits::Cdf [−][src]
Has a cumulative distribution function (CDF)
Required methods
fn cdf(&self, x: &X) -> f64
[src]
The value of the Cumulative Density Function at x
Example
The proportion of probability in (-∞, μ) in N(μ, σ) is 50%
use rv::dist::Gaussian; use rv::traits::Cdf; let g = Gaussian::new(1.0, 1.5).unwrap(); assert!((g.cdf(&1.0_f64) - 0.5).abs() < 1E-12);
Provided methods
Loading content...Implementors
impl<X> Cdf<X> for Geometric where
X: Unsigned + Integer + FromPrimitive + ToPrimitive + Saturating + Bounded,
[src]
impl<X> Cdf<X> for Geometric where
X: Unsigned + Integer + FromPrimitive + ToPrimitive + Saturating + Bounded,
[src]impl<X, T> Cdf<X> for DiscreteUniform<T> where
X: Integer + From<T> + ToPrimitive + Copy,
T: DuParam + SampleUniform + ToPrimitive,
[src]
impl<X, T> Cdf<X> for DiscreteUniform<T> where
X: Integer + From<T> + ToPrimitive + Copy,
T: DuParam + SampleUniform + ToPrimitive,
[src]impl<X: CategoricalDatum> Cdf<X> for Categorical
[src]
impl<X: CategoricalDatum> Cdf<X> for Categorical
[src]