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§
Sourcefn detect_anomalies(
&self,
data: &[MetricMeasurement],
) -> QuantRS2Result<Vec<Anomaly>>
fn detect_anomalies( &self, data: &[MetricMeasurement], ) -> QuantRS2Result<Vec<Anomaly>>
Detect anomalies in metric data
Sourcefn confidence_threshold(&self) -> f64
fn confidence_threshold(&self) -> f64
Get confidence threshold