pub struct HedgingCalibration {
pub offset: i8,
pub forbid: Vec<String>,
}Expand description
Hedging calibration — shifts the deterministic confidence-to-hedge mapping.
offset is added to the input confidence (clamped to 0..=100) before
the bucket lookup. forbid removes specific hedges from the available
set; per the resolved decision in the design spec, forbid falls
through toward more confident — forbidding a hedge usually expresses
“I don’t want wishy-washy framing here,” and the firmer-fallback
matches that intent.
Fields§
§offset: i8-50..=+50 added to confidence before hedge mapping.
forbid: Vec<String>Hedge words/phrases to never emit (case-insensitive). Match is
against the raw hedge string the engine would otherwise return
("perhaps", "likely", "it is certain that", etc.).
Implementations§
Source§impl HedgingCalibration
impl HedgingCalibration
pub fn neutral() -> Self
pub fn is_neutral(&self) -> bool
Trait Implementations§
Source§impl Clone for HedgingCalibration
impl Clone for HedgingCalibration
Source§fn clone(&self) -> HedgingCalibration
fn clone(&self) -> HedgingCalibration
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 moreSource§impl Debug for HedgingCalibration
impl Debug for HedgingCalibration
Source§impl Default for HedgingCalibration
impl Default for HedgingCalibration
Source§fn default() -> HedgingCalibration
fn default() -> HedgingCalibration
Returns the “default value” for a type. Read more
Source§impl PartialEq for HedgingCalibration
impl PartialEq for HedgingCalibration
Source§fn eq(&self, other: &HedgingCalibration) -> bool
fn eq(&self, other: &HedgingCalibration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HedgingCalibration
Auto Trait Implementations§
impl Freeze for HedgingCalibration
impl RefUnwindSafe for HedgingCalibration
impl Send for HedgingCalibration
impl Sync for HedgingCalibration
impl Unpin for HedgingCalibration
impl UnsafeUnpin for HedgingCalibration
impl UnwindSafe for HedgingCalibration
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