pub trait AnomalyDetector: Send + Sync {
// Required methods
fn detect(&self, data: &[f64]) -> Vec<AnomalyResult>;
fn update(&mut self, data: &[f64]);
fn config(&self) -> AnomalyDetectorConfig;
}Expand description
Anomaly detector trait
Required Methods§
Sourcefn detect(&self, data: &[f64]) -> Vec<AnomalyResult>
fn detect(&self, data: &[f64]) -> Vec<AnomalyResult>
Detect anomalies in metric data
Sourcefn config(&self) -> AnomalyDetectorConfig
fn config(&self) -> AnomalyDetectorConfig
Get detector configuration