[][src]Trait changepoint::RunLengthDetector

pub trait RunLengthDetector<T> {
    fn step(&mut self, value: &T) -> &[f64];
fn reset(&mut self);
fn votes_mean(&self) -> &[f64];
fn votes_var(&self) -> &[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.

fn reset(&mut self)

Reset internal state, new run-lengths will refer to steps after this point.

fn votes_mean(&self) -> &[f64]

Get mean votes for change-points

fn votes_var(&self) -> &[f64]

Get vote variance for change-points

Loading content...

Implementors

impl<X, Fx, Pr> RunLengthDetector<X> for Bocpd<X, Fx, Pr> where
    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, Fx, Pr> RunLengthDetector<X> for BocpdTruncated<X, Fx, Pr> where
    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...