pub struct AnomalyConfig {
pub window_size: usize,
pub warning_threshold: f32,
pub critical_threshold: f32,
pub min_samples: usize,
pub std_epsilon: f32,
}Expand description
Configuration for AnomalyDetector.
Fields§
§window_size: usizeSliding window size (number of samples to retain per dimension).
warning_threshold: f32Warning threshold (|z| > this → Warning).
critical_threshold: f32Critical threshold (|z| > this → Critical).
min_samples: usizeMinimum samples before z-score is computed (avoid noise from small windows).
std_epsilon: f32Epsilon for std dev to avoid division by zero.
Trait Implementations§
Source§impl Clone for AnomalyConfig
impl Clone for AnomalyConfig
Source§fn clone(&self) -> AnomalyConfig
fn clone(&self) -> AnomalyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnomalyConfig
impl Debug for AnomalyConfig
Source§impl Default for AnomalyConfig
impl Default for AnomalyConfig
Source§impl<'de> Deserialize<'de> for AnomalyConfig
impl<'de> Deserialize<'de> for AnomalyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AnomalyConfig
impl RefUnwindSafe for AnomalyConfig
impl Send for AnomalyConfig
impl Sync for AnomalyConfig
impl Unpin for AnomalyConfig
impl UnsafeUnpin for AnomalyConfig
impl UnwindSafe for AnomalyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more