Outlier detection
This crate provides implementations of time series outlier detection, the problem of determining whether one time series behaves differently to others in a group. (This is different to anomaly detection, which aims to determine if one or more samples appears to be different within a time series).
Two implementations are planned:
- DBSCAN: implemented
- Median Absolute Difference (MAD): not yet implemented (see GitHub issue)
Example
use ;
// Each slice inside `data` is a time series.
// The third one behaves differently at indexes 2 and 3.
let data: & = &;
let detector = with_sensitivity
.expect;
let processed = detector.preprocess
.expect;
let outliers = detector.detect
.expect;
assert_eq!;
assert!;
assert!;
assert_eq!;