pub trait ThresholdCalculationAlgorithm: Send + Sync {
// Required methods
fn calculate_threshold(&self, data: &[PerformanceDataPoint]) -> f64;
fn name(&self) -> &str;
fn config(&self) -> HashMap<String, String>;
}Expand description
Threshold calculation algorithm trait
Required Methods§
Sourcefn calculate_threshold(&self, data: &[PerformanceDataPoint]) -> f64
fn calculate_threshold(&self, data: &[PerformanceDataPoint]) -> f64
Calculate threshold based on historical data