Enum rv::dist::CategoricalError [−][src]
pub enum CategoricalError { NonFiniteWeight { ix: usize, ln: bool, weight: f64, }, NegativeWeight { ix: usize, weight: f64, }, WeightsDoNotSumToOne { ln: bool, sum: f64, }, EmptyWights, }
Variants
One or more of the weights is infinite or NaN
One or more of the weights is less than zero
The weights do not sum to 1
Weights has not entries
Trait Implementations
impl Clone for CategoricalError
[src]
impl Clone for CategoricalError
[src]fn clone(&self) -> CategoricalError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Error for CategoricalError
[src]
impl Error for CategoricalError
[src]impl PartialEq<CategoricalError> for CategoricalError
[src]
impl PartialEq<CategoricalError> for CategoricalError
[src]fn eq(&self, other: &CategoricalError) -> bool
[src]
fn ne(&self, other: &CategoricalError) -> bool
[src]
impl StructuralPartialEq for CategoricalError
[src]
impl StructuralPartialEq for CategoricalError
[src]Auto Trait Implementations
impl RefUnwindSafe for CategoricalError
impl RefUnwindSafe for CategoricalError
impl Send for CategoricalError
impl Send for CategoricalError
impl Sync for CategoricalError
impl Sync for CategoricalError
impl Unpin for CategoricalError
impl Unpin for CategoricalError
impl UnwindSafe for CategoricalError
impl UnwindSafe for CategoricalError
Blanket Implementations
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,