Enum rv::data::DataOrSuffStat[][src]

pub enum DataOrSuffStat<'a, X, Fx> where
    X: 'a,
    Fx: 'a + HasSuffStat<X>, 
{ Data(&'a Vec<X>), SuffStat(&'a Fx::Stat), None, }

Holds either a sufficient statistic of a vector of data.

Variants

A Vec of raw data

A sufficient statistic

No data

Methods

impl<'a, X, Fx> DataOrSuffStat<'a, X, Fx> where
    X: 'a,
    Fx: 'a + HasSuffStat<X>, 
[src]

Get the number of observations

Trait Implementations

impl<'a, X: Debug, Fx: Debug> Debug for DataOrSuffStat<'a, X, Fx> where
    X: 'a,
    Fx: 'a + HasSuffStat<X>,
    Fx::Stat: Debug
[src]

Formats the value using the given formatter. Read more

impl<'a, X: Clone, Fx: Clone> Clone for DataOrSuffStat<'a, X, Fx> where
    X: 'a,
    Fx: 'a + HasSuffStat<X>,
    Fx::Stat: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a, X, Fx> Send for DataOrSuffStat<'a, X, Fx> where
    X: Sync,
    <Fx as HasSuffStat<X>>::Stat: Sync

impl<'a, X, Fx> Sync for DataOrSuffStat<'a, X, Fx> where
    X: Sync,
    <Fx as HasSuffStat<X>>::Stat: Sync