pub struct AnomalyDetector {
pub iqr_multiplier: f64,
pub z_score_threshold: f64,
pub check_constant: bool,
}Expand description
Configurable anomaly detector.
Fields§
§iqr_multiplier: f64IQR multiplier for outlier detection (default 1.5).
z_score_threshold: f64Z-score threshold for outlier detection (default 3.0).
check_constant: boolWhether to flag constant-valued tensors.
Implementations§
Source§impl AnomalyDetector
impl AnomalyDetector
Sourcepub fn with_iqr_multiplier(self, m: f64) -> Self
pub fn with_iqr_multiplier(self, m: f64) -> Self
Set the IQR multiplier for outlier detection.
Sourcepub fn with_z_score_threshold(self, t: f64) -> Self
pub fn with_z_score_threshold(self, t: f64) -> Self
Set the z-score threshold for outlier detection.
Sourcepub fn with_check_constant(self, c: bool) -> Self
pub fn with_check_constant(self, c: bool) -> Self
Set whether to check for constant-valued tensors.
Sourcepub fn detect(&self, data: &[f64]) -> AnomalyReport
pub fn detect(&self, data: &[f64]) -> AnomalyReport
Detect anomalies in data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnomalyDetector
impl RefUnwindSafe for AnomalyDetector
impl Send for AnomalyDetector
impl Sync for AnomalyDetector
impl Unpin for AnomalyDetector
impl UnsafeUnpin for AnomalyDetector
impl UnwindSafe for AnomalyDetector
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> 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