use super::{Anomaly, AnomalyDetector, DataPoint};
use crate::error::Result;
pub struct IsolationForestDetector {
#[allow(dead_code)]
threshold: f64,
}
impl IsolationForestDetector {
pub fn new(threshold: f64) -> Self {
Self { threshold }
}
}
impl AnomalyDetector for IsolationForestDetector {
fn detect(&self, _data: &[DataPoint]) -> Result<Vec<Anomaly>> {
Ok(Vec::new())
}
fn update_baseline(&mut self, _data: &[DataPoint]) -> Result<()> {
Ok(())
}
}
pub struct AutoencoderDetector {
#[allow(dead_code)]
threshold: f64,
}
impl AutoencoderDetector {
pub fn new(threshold: f64) -> Self {
Self { threshold }
}
}
impl AnomalyDetector for AutoencoderDetector {
fn detect(&self, _data: &[DataPoint]) -> Result<Vec<Anomaly>> {
Ok(Vec::new())
}
fn update_baseline(&mut self, _data: &[DataPoint]) -> Result<()> {
Ok(())
}
}