[][src]Enum rv::dist::MixtureError

pub enum MixtureError {
    WeightsEmpty,
    WeightsDoNotSumToOne {
        sum: f64,
    },
    WeightTooLow {
        ix: usize,
        weight: f64,
    },
    ComponentsEmpty,
    ComponentWeightLengthMismatch {
        n_weights: usize,
        n_components: usize,
    },
}

Variants

WeightsEmpty

The weights vector is empty

WeightsDoNotSumToOne

The weights to not sum to one

Fields of WeightsDoNotSumToOne

sum: f64
WeightTooLow

One or more weights is less than zero

Fields of WeightTooLow

ix: usizeweight: f64
ComponentsEmpty

The components vector is empty

ComponentWeightLengthMismatch

The components vector and the weights vector are different lengths

Fields of ComponentWeightLengthMismatch

n_weights: usize

length of the weights vector

n_components: usize

length of the components vector

Trait Implementations

impl Clone for MixtureError[src]

impl Debug for MixtureError[src]

impl Display for MixtureError[src]

impl Error for MixtureError[src]

impl PartialEq<MixtureError> for MixtureError[src]

impl StructuralPartialEq for MixtureError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,