pub struct ThresholdedConfig {
pub z_factor: f64,
pub threshold_mode: ThresholdMode,
pub score_decay: f64,
pub min_observations: u64,
pub min_threshold: f64,
}Expand description
Validated configuration of the adaptive-threshold layer.
Fields§
§z_factor: f64Multiplier on the score stddev used to derive the adaptive
threshold when Self::threshold_mode is
ThresholdMode::ZSigma. Kept as a top-level field for
back-compat — callers constructing via struct literal get
the legacy behaviour without opt-in. Ignored under
ThresholdMode::Quantile.
threshold_mode: ThresholdModeSelects whether the threshold is driven by the EMA’s
mean + z·σ or by a streaming quantile of the score
distribution. Defaults to ThresholdMode::ZSigma.
score_decay: f64EMA smoothing factor on the score stream. Must be in (0, 1].
min_observations: u64Samples required before the detector stops emitting warming-up verdicts.
min_threshold: f64Absolute floor on the adaptive threshold.
Implementations§
Trait Implementations§
Source§impl Clone for ThresholdedConfig
impl Clone for ThresholdedConfig
Source§fn clone(&self) -> ThresholdedConfig
fn clone(&self) -> ThresholdedConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ThresholdedConfig
impl Debug for ThresholdedConfig
Source§impl Default for ThresholdedConfig
impl Default for ThresholdedConfig
Source§impl<'de> Deserialize<'de> for ThresholdedConfig
impl<'de> Deserialize<'de> for ThresholdedConfig
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
Source§impl PartialEq for ThresholdedConfig
impl PartialEq for ThresholdedConfig
Source§impl Serialize for ThresholdedConfig
impl Serialize for ThresholdedConfig
impl Copy for ThresholdedConfig
impl StructuralPartialEq for ThresholdedConfig
Auto Trait Implementations§
impl Freeze for ThresholdedConfig
impl RefUnwindSafe for ThresholdedConfig
impl Send for ThresholdedConfig
impl Sync for ThresholdedConfig
impl Unpin for ThresholdedConfig
impl UnsafeUnpin for ThresholdedConfig
impl UnwindSafe for ThresholdedConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more