pub struct EvidenceLogit(/* private fields */);Expand description
Signed prior-free log-likelihood-ratio evidence.
Zero is neutral. Positive values support relevance and negative values oppose it.
Implementations§
Source§impl EvidenceLogit
impl EvidenceLogit
pub fn new(value: f64) -> ScoringResult<Self>
Sourcepub fn from_prior_free_probability(probability: f64) -> ScoringResult<Self>
pub fn from_prior_free_probability(probability: f64) -> ScoringResult<Self>
Convert a prior-free probability-like evidence value into logit space.
Calling this method is an explicit assertion that probability does
not already contain a relevance prior.
pub const fn neutral() -> Self
pub const fn value(self) -> f64
Trait Implementations§
Source§impl Clone for EvidenceLogit
impl Clone for EvidenceLogit
Source§fn clone(&self) -> EvidenceLogit
fn clone(&self) -> EvidenceLogit
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 moreimpl Copy for EvidenceLogit
Source§impl Debug for EvidenceLogit
impl Debug for EvidenceLogit
Source§impl From<EvidenceLogit> for f64
impl From<EvidenceLogit> for f64
Source§fn from(logit: EvidenceLogit) -> Self
fn from(logit: EvidenceLogit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EvidenceLogit
impl PartialEq for EvidenceLogit
Source§impl PartialOrd for EvidenceLogit
impl PartialOrd for EvidenceLogit
impl StructuralPartialEq for EvidenceLogit
Auto Trait Implementations§
impl Freeze for EvidenceLogit
impl RefUnwindSafe for EvidenceLogit
impl Send for EvidenceLogit
impl Sync for EvidenceLogit
impl Unpin for EvidenceLogit
impl UnsafeUnpin for EvidenceLogit
impl UnwindSafe for EvidenceLogit
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