pub struct EvidenceEvent { /* private fields */ }Expand description
A single evidence event collected for offline aggregation.
Fields are crate-private; construct events via EvidenceEvent::positive or
EvidenceEvent::contradictory so signed_log_odds’s sign always agrees with polarity.
Implementations§
Source§impl EvidenceEvent
impl EvidenceEvent
Sourcepub fn positive(
family: SignalFamily,
technique_id: impl Into<String>,
weight: f64,
log_odds_magnitude: f64,
) -> Self
pub fn positive( family: SignalFamily, technique_id: impl Into<String>, weight: f64, log_odds_magnitude: f64, ) -> Self
Positive event; signed_log_odds is forced to log_odds_magnitude.abs().
Sourcepub fn contradictory(
family: SignalFamily,
technique_id: impl Into<String>,
weight: f64,
log_odds_magnitude: f64,
) -> Self
pub fn contradictory( family: SignalFamily, technique_id: impl Into<String>, weight: f64, log_odds_magnitude: f64, ) -> Self
Contradictory event; signed_log_odds is forced to -log_odds_magnitude.abs().
Trait Implementations§
Source§impl Clone for EvidenceEvent
impl Clone for EvidenceEvent
Source§fn clone(&self) -> EvidenceEvent
fn clone(&self) -> EvidenceEvent
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 moreAuto Trait Implementations§
impl Freeze for EvidenceEvent
impl RefUnwindSafe for EvidenceEvent
impl Send for EvidenceEvent
impl Sync for EvidenceEvent
impl Unpin for EvidenceEvent
impl UnsafeUnpin for EvidenceEvent
impl UnwindSafe for EvidenceEvent
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