pub struct AdaptiveThresholdFactory;
impl AdaptiveThresholdFactory {
#[must_use]
pub fn create_default() -> AdaptiveThresholdManager {
AdaptiveThresholdManager::new(AdaptiveConfig::default())
}
#[must_use]
pub fn create_dev_optimized() -> AdaptiveThresholdManager {
let config = AdaptiveConfig {
target_analysis_time_ms: 50, sample_window_size: 20, adjustment_sensitivity: 0.2, ..Default::default()
};
AdaptiveThresholdManager::new(config)
}
#[must_use]
pub fn create_prod_optimized() -> AdaptiveThresholdManager {
let config = AdaptiveConfig {
target_analysis_time_ms: 200, sample_window_size: 100, adjustment_sensitivity: 0.05, ..Default::default()
};
AdaptiveThresholdManager::new(config)
}
}