pub enum ThresholdMethod {
Static,
MovingAverage {
window: usize,
},
ExponentialSmoothing {
alpha: f64,
},
Percentile {
lower: f64,
upper: f64,
},
}Expand description
Method used for adaptive threshold calculation.
Variants§
Trait Implementations§
Source§impl Clone for ThresholdMethod
impl Clone for ThresholdMethod
Source§impl Debug for ThresholdMethod
impl Debug for ThresholdMethod
Source§impl<'de> Deserialize<'de> for ThresholdMethod
impl<'de> Deserialize<'de> for ThresholdMethod
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 ThresholdMethod
impl PartialEq for ThresholdMethod
Source§impl Serialize for ThresholdMethod
impl Serialize for ThresholdMethod
impl StructuralPartialEq for ThresholdMethod
Auto Trait Implementations§
impl Freeze for ThresholdMethod
impl RefUnwindSafe for ThresholdMethod
impl Send for ThresholdMethod
impl Sync for ThresholdMethod
impl Unpin for ThresholdMethod
impl UnsafeUnpin for ThresholdMethod
impl UnwindSafe for ThresholdMethod
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