AnomalyDetector

Trait AnomalyDetector 

Source
pub trait AnomalyDetector: Send + Sync {
    // Required methods
    fn detect(&self, data: &[(Instant, f64)]) -> Vec<DetectedAnomaly>;
    fn update(&mut self, data: &[(Instant, f64)]);
    fn threshold(&self) -> f64;
    fn set_threshold(&mut self, threshold: f64);
}
Expand description

Anomaly detector trait

Required Methods§

Source

fn detect(&self, data: &[(Instant, f64)]) -> Vec<DetectedAnomaly>

Detect anomalies in data

Source

fn update(&mut self, data: &[(Instant, f64)])

Update detection model

Source

fn threshold(&self) -> f64

Get detection threshold

Source

fn set_threshold(&mut self, threshold: f64)

Set detection threshold

Implementors§