pub struct TritScalar(pub f32);Expand description
A continuous ternary confidence scalar, clamped to [-1.0, +1.0].
Tuple Fields§
§0: f32Implementations§
Source§impl TritScalar
impl TritScalar
Sourcepub fn confidence(&self) -> f32
pub fn confidence(&self) -> f32
Confidence score ∈ [0.0, 1.0].
For reject/affirm: how far past the zone boundary (0.0 = at boundary, 1.0 = at extreme). For tend: how close to the center (1.0 = scalar=0, 0.0 = at boundary).
Sourcepub fn is_actionable(&self, min_confidence: f32) -> bool
pub fn is_actionable(&self, min_confidence: f32) -> bool
True if the signal is in a decisive zone AND confidence meets the threshold. Agents should only act when is_actionable returns true.
Trait Implementations§
Source§impl Clone for TritScalar
impl Clone for TritScalar
Source§fn clone(&self) -> TritScalar
fn clone(&self) -> TritScalar
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TritScalar
impl RefUnwindSafe for TritScalar
impl Send for TritScalar
impl Sync for TritScalar
impl Unpin for TritScalar
impl UnsafeUnpin for TritScalar
impl UnwindSafe for TritScalar
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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