Trait rv::traits::HasSuffStat

source ·
pub trait HasSuffStat<X> {
    type Stat: SuffStat<X>;

    // Required methods
    fn empty_suffstat(&self) -> Self::Stat;
    fn ln_f_stat(&self, stat: &Self::Stat) -> f64;
}
Expand description

The data for this distribution can be summarized by a statistic

Required Associated Types§

Required Methods§

source

fn empty_suffstat(&self) -> Self::Stat

source

fn ln_f_stat(&self, stat: &Self::Stat) -> f64

Return the log likelihood for the data represented by the sufficient statistic.

Implementors§

source§

impl HasSuffStat<&[f64]> for StickBreaking

Implementation of HasSuffStat for StickBreaking with stick lengths as input.

source§

impl HasSuffStat<f32> for Beta

source§

impl HasSuffStat<f32> for Gaussian

source§

impl HasSuffStat<f32> for InvGamma

source§

impl HasSuffStat<f32> for InvGaussian

source§

impl HasSuffStat<f32> for UnitPowerLaw

source§

impl HasSuffStat<f64> for Beta

source§

impl HasSuffStat<f64> for Gaussian

source§

impl HasSuffStat<f64> for InvGamma

source§

impl HasSuffStat<f64> for InvGaussian

source§

impl HasSuffStat<f64> for UnitPowerLaw

source§

impl HasSuffStat<u8> for Poisson

source§

impl HasSuffStat<u16> for Poisson

source§

impl HasSuffStat<u32> for Poisson

source§

impl HasSuffStat<usize> for Poisson

source§

impl HasSuffStat<usize> for StickBreakingDiscrete

source§

impl HasSuffStat<Matrix<f64, Dyn, Const<1>, VecStorage<f64, Dyn, Const<1>>>> for MvGaussian

source§

impl<X: Booleable> HasSuffStat<X> for Bernoulli

source§

impl<X: CategoricalDatum> HasSuffStat<X> for Categorical