[−][src]Trait changepoint::RunLengthDetector
Trait for run-length detectors
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.
Implementors
impl<X, H, Fx, Pr> RunLengthDetector<X> for Bocpd<X, H, Fx, Pr> where
H: Fn(usize) -> f64,
Fx: Rv<X> + HasSuffStat<X>,
Pr: ConjugatePrior<X, Fx>,
Fx::Stat: Clone,
[src]
H: Fn(usize) -> f64,
Fx: Rv<X> + HasSuffStat<X>,
Pr: ConjugatePrior<X, Fx>,
Fx::Stat: Clone,
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.
impl<X, H, Fx, Pr> RunLengthDetector<X> for BocpdTruncated<X, H, Fx, Pr> where
H: Fn(usize) -> f64,
Fx: Rv<X> + HasSuffStat<X>,
Pr: ConjugatePrior<X, Fx>,
Fx::Stat: Clone,
[src]
H: Fn(usize) -> f64,
Fx: Rv<X> + HasSuffStat<X>,
Pr: ConjugatePrior<X, Fx>,
Fx::Stat: Clone,