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§
Sourcefn set_threshold(&mut self, threshold: f64)
fn set_threshold(&mut self, threshold: f64)
Set detection threshold