pub struct ObservationOutcome {
pub z_score: Option<f64>,
pub anomaly: bool,
pub baseline: EmaBaselineState,
pub sample: f64,
}Expand description
Outcome of a single observe_sample call.
Fields§
§z_score: Option<f64>Z-score of the new sample relative to the pre-update baseline.
None when the baseline was too small.
anomaly: boolWhether the sample was flagged as anomalous.
baseline: EmaBaselineStatePost-update baseline snapshot.
sample: f64The sample value that was observed.
Trait Implementations§
Source§impl Clone for ObservationOutcome
impl Clone for ObservationOutcome
Source§fn clone(&self) -> ObservationOutcome
fn clone(&self) -> ObservationOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ObservationOutcome
impl RefUnwindSafe for ObservationOutcome
impl Send for ObservationOutcome
impl Sync for ObservationOutcome
impl Unpin for ObservationOutcome
impl UnsafeUnpin for ObservationOutcome
impl UnwindSafe for ObservationOutcome
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