Trait rv::traits::HasSuffStat

source ·
pub trait HasSuffStat<X>: Rv<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.

Object Safety§

This trait is not object safe.

Implementors§