Trait AnomalyDetector

Source
pub trait AnomalyDetector:
    Debug
    + Send
    + Sync {
    // Required methods
    fn detect_anomalies(
        &self,
        data: &[MetricMeasurement],
    ) -> QuantRS2Result<Vec<Anomaly>>;
    fn name(&self) -> &str;
    fn confidence_threshold(&self) -> f64;
}
Expand description

Anomaly detection trait

Required Methods§

Source

fn detect_anomalies( &self, data: &[MetricMeasurement], ) -> QuantRS2Result<Vec<Anomaly>>

Detect anomalies in metric data

Source

fn name(&self) -> &str

Get detector name

Source

fn confidence_threshold(&self) -> f64

Get confidence threshold

Implementors§