Trait rv::traits::ConjugatePrior[][src]

pub trait ConjugatePrior<X, Fx>: Rv<Fx> where
    Fx: Rv<X> + HasSuffStat<X>, 
{ type Posterior: Rv<Fx>; fn posterior(&self, x: &DataOrSuffStat<X, Fx>) -> Self::Posterior;
fn ln_m(&self, x: &DataOrSuffStat<X, Fx>) -> f64;
fn ln_pp(&self, y: &X, x: &DataOrSuffStat<X, Fx>) -> f64; fn m(&self, x: &DataOrSuffStat<X, Fx>) -> f64 { ... }
fn pp(&self, y: &X, x: &DataOrSuffStat<X, Fx>) -> f64 { ... } }

A prior on Fx that induces a posterior that is the same form as the prior

Associated Types

Required Methods

Computes the posterior distribution from the data

Log marginal likelihood

Log posterior predictive of y given x

Provided Methods

Marginal likelihood of x

Posterior Predictive distribution

Implementors