[−][src]Trait changepoint::BocpdLike
Trait for implementors of Bayesian online change-point detection
Associated Types
type Fx: Rv<T>
Type of type of distribution
type PosteriorPredictive: Rv<Self::Fx>
Type of predictive prior distribution
Required methods
fn step(&mut self, value: &T) -> &[f64]
Update the run-length detector and return a sequence of run length probabilities.
fn reset(&mut self)
Reset internal state, new run-lengths will refer to steps after this point.
fn pp(&self) -> Self::PosteriorPredictive
Generate the posterior predictive distribution
fn preload(&mut self, data: &[T])
Preload a seqeunce into the default suff stat
Implementors
impl<X, Fx, Pr> BocpdLike<X> for Bocpd<X, Fx, Pr> where
Fx: Rv<X> + HasSuffStat<X>,
Pr: ConjugatePrior<X, Fx, Posterior = Pr> + Clone,
Fx::Stat: Clone,
[src]
Fx: Rv<X> + HasSuffStat<X>,
Pr: ConjugatePrior<X, Fx, Posterior = Pr> + Clone,
Fx::Stat: Clone,
type Fx = Fx
type PosteriorPredictive = Mixture<Pr>
fn reset(&mut self)
[src]
fn step(&mut self, data: &X) -> &[f64]
[src]
Update the model with a new datum and return the distribution of run lengths.
fn pp(&self) -> Self::PosteriorPredictive
[src]
fn preload(&mut self, data: &[X])
[src]
impl<X, Fx, Pr> BocpdLike<X> for BocpdTruncated<X, Fx, Pr> where
Fx: Rv<X> + HasSuffStat<X>,
Pr: ConjugatePrior<X, Fx, Posterior = Pr> + Clone,
Fx::Stat: Clone,
[src]
Fx: Rv<X> + HasSuffStat<X>,
Pr: ConjugatePrior<X, Fx, Posterior = Pr> + Clone,
Fx::Stat: Clone,