Expand description
§Changepoint detection models
Changepoint detection of time series.
For now it is mostly just a wrapper around the changepoint crate, with
a common Detector trait to allow for more implementations in future.
§Example
use augurs::changepoint::{Detector, DefaultArgpcpDetector};
let data = [0.5, 1.0, 0.4, 0.8, 1.5, 0.9, 0.6, 25.3, 20.4, 27.3, 30.0];
let changepoints = DefaultArgpcpDetector::default().detect_changepoints(&data);
// 0 is always included. 6 is the index prior to the changepoint.
assert_eq!(changepoints, vec![0, 6]);§Credits
The bulk of the actual work is done by the changepoint crate.
Modules§
Structs§
- Argpcp
Detector - A changepoint detector using autoregressive Gaussian Processes.
- Bocpd
Detector - A changepoint detector using Bayesian Online Changepoint Detection.
- Default
Argpcp Detector Builder - Builder for a
DefaultArgpcpDetector.
Traits§
- Detector
- Trait implemented by changepoint detectors.
Type Aliases§
- Default
Argpcp Detector - An
ArgpcpDetectorwith a sensible default choice of kernel. - Normal
Gamma Detector - A
BocpdDetectorfor Normal data with a Normal Gamma prior. - Normal
InvGamma Detector - A
BocpdDetectorfor Normal data with a Normal inverse-Gamma prior.