pub struct StatAnomalyConfig {
pub z_threshold: f32,
pub min_samples: usize,
pub use_robust: bool,
pub change_point_threshold: f32,
pub use_day_of_week: bool,
pub rare_day_fraction: f32,
}Expand description
Configuration for the statistical anomaly detector.
Fields§
§z_threshold: f32Absolute z-score threshold to flag an anomaly.
min_samples: usizeMinimum samples required to build a baseline.
use_robust: boolWhen true, also run robust MAD scoring and CUSUM change-points.
change_point_threshold: f32CUSUM change-point score threshold (unitless; smoke default).
use_day_of_week: boolWhen true, flag appearances on weekdays that were rare in baseline.
rare_day_fraction: f32Baseline day fraction below this is “rare” (e.g. 0.08 = 8%).
Trait Implementations§
Source§impl Clone for StatAnomalyConfig
impl Clone for StatAnomalyConfig
impl Copy for StatAnomalyConfig
Source§impl Debug for StatAnomalyConfig
impl Debug for StatAnomalyConfig
Source§impl Default for StatAnomalyConfig
impl Default for StatAnomalyConfig
Source§impl PartialEq for StatAnomalyConfig
impl PartialEq for StatAnomalyConfig
impl StructuralPartialEq for StatAnomalyConfig
Auto Trait Implementations§
impl Freeze for StatAnomalyConfig
impl RefUnwindSafe for StatAnomalyConfig
impl Send for StatAnomalyConfig
impl Sync for StatAnomalyConfig
impl Unpin for StatAnomalyConfig
impl UnsafeUnpin for StatAnomalyConfig
impl UnwindSafe for StatAnomalyConfig
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