Crates.io | augurs-changepoint |
lib.rs | augurs-changepoint |
version | 0.6.2 |
source | src |
created_at | 2024-05-21 19:31:41.356085 |
updated_at | 2024-11-10 13:50:02.209669 |
description | Changepoint detection using Bayesian Online Change Point Detection and more. |
homepage | |
repository | https://github.com/grafana/augurs |
max_upload_size | |
id | 1247138 |
size | 23,008 |
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.
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]);
The bulk of the actual work is done by the changepoint
crate.