userv::prelude::Rv;/// Trait for implementors of Bayesian online change-point detection
pubtraitBocpdLike<T> {/// Type of type of distribution
typeFx:Rv<T>;/// Type of predictive prior distribution
typePosteriorPredictive:Rv<Self::Fx>;/// Update the run-length detector and return a sequence of run length probabilities.
fnstep(&mutself, value:&T)->&[f64];/// Reset internal state, new run-lengths will refer to steps after this point.
fnreset(&mutself);/// Generate the posterior predictive distribution
fnpp(&self)->Self::PosteriorPredictive;/// Preload a seqeunce into the default suff stat
fnpreload(&mutself, data:&[T]);}