#point #time-series #detection #bayesian #online #change #changepoint

augurs-changepoint

Changepoint detection using Bayesian Online Change Point Detection and more

4 releases (2 breaking)

0.3.1 Jul 30, 2024
0.3.0 Jul 30, 2024
0.2.0 Jun 5, 2024
0.1.2 May 21, 2024

#546 in Algorithms

MIT/Apache

31KB
577 lines

Changepoint detection models.

This crate provides algorithms for performing changepoint detection.

For now it is mostly just a wrapper around the changepoint crate, with a common Detector trait to allow for more implementations in future.

This crate is alpha quality - APIs will almost certainly change!

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.

Dependencies

~15MB
~260K SLoC