pub struct ZScoreDetector { /* private fields */ }Expand description
Simple Z-score based anomaly detector
Maintains running mean and variance, flags values that exceed a threshold number of standard deviations.
Implementations§
Source§impl ZScoreDetector
impl ZScoreDetector
Sourcepub fn is_anomaly(&self, value: f64) -> bool
pub fn is_anomaly(&self, value: f64) -> bool
Check if a value is an anomaly
Trait Implementations§
Source§impl Clone for ZScoreDetector
impl Clone for ZScoreDetector
Auto Trait Implementations§
impl Freeze for ZScoreDetector
impl RefUnwindSafe for ZScoreDetector
impl Send for ZScoreDetector
impl Sync for ZScoreDetector
impl Unpin for ZScoreDetector
impl UnsafeUnpin for ZScoreDetector
impl UnwindSafe for ZScoreDetector
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