pub struct PriorLogit(/* private fields */);Expand description
A relevance prior represented in log-odds space.
Implementations§
Source§impl PriorLogit
impl PriorLogit
pub fn new(value: f64) -> ScoringResult<Self>
pub fn from_probability(probability: f64) -> ScoringResult<Self>
pub const fn neutral() -> Self
pub const fn value(self) -> f64
Trait Implementations§
Source§impl Clone for PriorLogit
impl Clone for PriorLogit
Source§fn clone(&self) -> PriorLogit
fn clone(&self) -> PriorLogit
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 PriorLogit
Source§impl Debug for PriorLogit
impl Debug for PriorLogit
Source§impl From<PriorLogit> for f64
impl From<PriorLogit> for f64
Source§fn from(logit: PriorLogit) -> Self
fn from(logit: PriorLogit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PriorLogit
impl PartialEq for PriorLogit
Source§impl PartialOrd for PriorLogit
impl PartialOrd for PriorLogit
impl StructuralPartialEq for PriorLogit
Auto Trait Implementations§
impl Freeze for PriorLogit
impl RefUnwindSafe for PriorLogit
impl Send for PriorLogit
impl Sync for PriorLogit
impl Unpin for PriorLogit
impl UnsafeUnpin for PriorLogit
impl UnwindSafe for PriorLogit
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