anomalyzer-ts 0.1.0

Probabilistic anomaly detection for time-series data
Documentation
// examples/basic.rs
use anomalyzer_ts::{Anomalyzer, AnomalyzerConf};

fn main() {
    let conf = AnomalyzerConf {
        active_size: 1,
        n_seasons: 4,
        methods: vec!["magnitude".to_string(), "highrank".to_string()],
        ..Default::default()
    };

    let mut detector = Anomalyzer::new(conf, Some(vec![10.0, 10.1, 10.2, 10.0])).unwrap();

    let values = vec![10.15, 10.3, 15.0, 9.8];

    for &v in &values {
        let prob = detector.push(v);
        println!("Value: {:>5} → Anomaly prob: {:.3}", v, prob);
    }
}