[][src]Trait changepoint::RunLengthDetector

pub trait RunLengthDetector<T> {
    fn step(&mut self, value: &T) -> &[f64];
}

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.

Loading content...

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]

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]

fn step(&mut self, data: &X) -> &[f64][src]

Update the model with a new datum and return the distribution of run lengths.

Loading content...