pub struct ScoreEnvelope {
pub proxy: f32,
pub lower_bound: f32,
pub upper_bound: f32,
pub quantile_error: f32,
}Expand description
Score with error bounds for certified/calibrated modes
Fields§
§proxy: f32Proxy score (from quantized representation)
lower_bound: f32Lower bound on true score
upper_bound: f32Upper bound on true score
quantile_error: f32Quantile-based error bound (for calibrated mode)
Implementations§
Source§impl ScoreEnvelope
impl ScoreEnvelope
Sourcepub fn with_bounds(proxy: f32, lower_bound: f32, upper_bound: f32) -> Self
pub fn with_bounds(proxy: f32, lower_bound: f32, upper_bound: f32) -> Self
Create from proxy with asymmetric bounds
Sourcepub fn definitely_beats(&self, other: &ScoreEnvelope) -> bool
pub fn definitely_beats(&self, other: &ScoreEnvelope) -> bool
Check if this envelope definitely beats another
Returns true iff lower_bound(self) > upper_bound(other)
Sourcepub fn might_beat(&self, other: &ScoreEnvelope) -> bool
pub fn might_beat(&self, other: &ScoreEnvelope) -> bool
Check if this envelope might beat another
Returns true iff upper_bound(self) > lower_bound(other)
Sourcepub fn estimated_true(&self) -> f32
pub fn estimated_true(&self) -> f32
Get true score estimate (center of bounds)
Trait Implementations§
Source§impl Clone for ScoreEnvelope
impl Clone for ScoreEnvelope
Source§fn clone(&self) -> ScoreEnvelope
fn clone(&self) -> ScoreEnvelope
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 ScoreEnvelope
Auto Trait Implementations§
impl Freeze for ScoreEnvelope
impl RefUnwindSafe for ScoreEnvelope
impl Send for ScoreEnvelope
impl Sync for ScoreEnvelope
impl Unpin for ScoreEnvelope
impl UnsafeUnpin for ScoreEnvelope
impl UnwindSafe for ScoreEnvelope
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more