Trait rv::traits::Support [−][src]
Identifies the support of the Rv
Required methods
fn supports(&self, x: &X) -> bool
[src]
Returns true
if x
is in the support of the Rv
Example
use rv::dist::Uniform; use rv::traits::Support; // Create uniform with support on the interval [0, 1] let u = Uniform::new(0.0, 1.0).unwrap(); assert!(u.supports(&0.5_f64)); assert!(!u.supports(&-0.1_f64)); assert!(!u.supports(&1.1_f64));
Implementors
impl Support<MvGaussian> for NormalInvWishart
[src]
impl Support<MvGaussian> for NormalInvWishart
[src]fn supports(&self, x: &MvGaussian) -> bool
[src]
impl Support<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart
[src]
impl Support<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart
[src]impl<X, T> Support<X> for DiscreteUniform<T> where
X: Integer + From<T>,
T: DuParam,
[src]
impl<X, T> Support<X> for DiscreteUniform<T> where
X: Integer + From<T>,
T: DuParam,
[src]impl<X: CategoricalDatum> Support<X> for Categorical
[src]
impl<X: CategoricalDatum> Support<X> for Categorical
[src]