pub struct EvidenceEntryBuilder { /* private fields */ }Expand description
Builder for constructing EvidenceEntry values.
Handles automatic selection of top-3 evidence terms by |log(BF)|.
Implementations§
Source§impl EvidenceEntryBuilder
impl EvidenceEntryBuilder
Sourcepub fn new(domain: DecisionDomain, decision_id: u64, timestamp_ns: u64) -> Self
pub fn new(domain: DecisionDomain, decision_id: u64, timestamp_ns: u64) -> Self
Start building an evidence entry.
Sourcepub fn log_posterior(self, value: f64) -> Self
pub fn log_posterior(self, value: f64) -> Self
Set the log-posterior odds.
Sourcepub fn loss_avoided(self, value: f64) -> Self
pub fn loss_avoided(self, value: f64) -> Self
Set the loss avoided.
Sourcepub fn confidence_interval(self, lower: f64, upper: f64) -> Self
pub fn confidence_interval(self, lower: f64, upper: f64) -> Self
Set the confidence interval.
Sourcepub fn build(self) -> EvidenceEntry
pub fn build(self) -> EvidenceEntry
Build the entry, selecting top-3 evidence terms by |log(BF)|.
Auto Trait Implementations§
impl Freeze for EvidenceEntryBuilder
impl RefUnwindSafe for EvidenceEntryBuilder
impl Send for EvidenceEntryBuilder
impl Sync for EvidenceEntryBuilder
impl Unpin for EvidenceEntryBuilder
impl UnwindSafe for EvidenceEntryBuilder
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