pub enum OutlierError {
EmptyInput,
NonFinite,
InvalidThreshold,
ZeroSpread,
}Expand description
Errors that prevent a detector from scoring a sample.
Returned (never panicked) so callers stay clear of the crate’s unwrap/panic
lint gate and can surface a clean diagnostic.
Variants§
EmptyInput
The sample was empty, so nothing can be scored.
NonFinite
An observation was non-finite (NaN or ±∞), which has no valid score.
InvalidThreshold
The requested threshold (or fence multiplier) was not a finite, positive value, so the flagging rule would be ill-defined.
ZeroSpread
The sample’s spread collapsed to zero (a constant sample for the z-score, or a zero MAD for the modified z-score), so a scale-normalised score is undefined.
Trait Implementations§
Source§impl Clone for OutlierError
impl Clone for OutlierError
Source§fn clone(&self) -> OutlierError
fn clone(&self) -> OutlierError
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 OutlierError
impl Debug for OutlierError
Source§impl Display for OutlierError
impl Display for OutlierError
impl Eq for OutlierError
Source§impl Error for OutlierError
impl Error for OutlierError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for OutlierError
impl PartialEq for OutlierError
Source§fn eq(&self, other: &OutlierError) -> bool
fn eq(&self, other: &OutlierError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutlierError
Auto Trait Implementations§
impl Freeze for OutlierError
impl RefUnwindSafe for OutlierError
impl Send for OutlierError
impl Sync for OutlierError
impl Unpin for OutlierError
impl UnsafeUnpin for OutlierError
impl UnwindSafe for OutlierError
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