pub struct Anomaly {
pub index: usize,
pub value: f64,
pub anomaly_type: AnomalyType,
pub score: f64,
}Expand description
Represents a detected anomaly
Fields§
§index: usizeIndex in the time series
value: f64Value at the anomaly point
anomaly_type: AnomalyTypeType of anomaly
score: f64Anomaly score (higher = more anomalous)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Anomaly
impl<'de> Deserialize<'de> for Anomaly
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Anomaly, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Anomaly, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Anomaly
impl Serialize for Anomaly
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Anomaly
impl RefUnwindSafe for Anomaly
impl Send for Anomaly
impl Sync for Anomaly
impl Unpin for Anomaly
impl UnwindSafe for Anomaly
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