pub struct EvidentialPair {
pub mu: f32,
pub lambda: f32,
}Expand description
Evidential (μ, λ) pair — support and refutation degrees.
Fields§
§mu: f32μ (mu) — degree of positive evidence [0, 1].
lambda: f32λ (lambda) — degree of negative evidence [0, 1].
Implementations§
Source§impl EvidentialPair
impl EvidentialPair
Sourcepub fn new(mu: f32, lambda: f32) -> Self
pub fn new(mu: f32, lambda: f32) -> Self
Create a pair with mu/lambda clamped into [0, 1] — inputs
outside the unit interval saturate rather than error.
Sourcepub fn is_strong_positive(&self) -> bool
pub fn is_strong_positive(&self) -> bool
Is this a strong positive claim? (G ≥ 0.5)
Sourcepub fn is_strong_negative(&self) -> bool
pub fn is_strong_negative(&self) -> bool
Is this a strong negative claim? (G ≤ -0.5)
Sourcepub fn is_contradiction(&self) -> bool
pub fn is_contradiction(&self) -> bool
Is this a contradiction? (both μ ≥ 0.5 and λ ≥ 0.5)
Sourcepub fn pack_into_metadata(&self, metadata: u64) -> u64
pub fn pack_into_metadata(&self, metadata: u64) -> u64
Pack into an NQuin’s metadata modality payload area [0..31], preserving the Lamport clock [32..60] and routing lane [61..62].
Sourcepub fn unpack_from_metadata(metadata: u64) -> Self
pub fn unpack_from_metadata(metadata: u64) -> Self
Unpack from an NQuin’s metadata modality payload area [0..31].
Trait Implementations§
Source§impl Clone for EvidentialPair
impl Clone for EvidentialPair
impl Copy for EvidentialPair
Source§impl Debug for EvidentialPair
impl Debug for EvidentialPair
Source§impl Default for EvidentialPair
impl Default for EvidentialPair
Source§impl PartialEq for EvidentialPair
impl PartialEq for EvidentialPair
impl StructuralPartialEq for EvidentialPair
Auto Trait Implementations§
impl Freeze for EvidentialPair
impl RefUnwindSafe for EvidentialPair
impl Send for EvidentialPair
impl Sync for EvidentialPair
impl Unpin for EvidentialPair
impl UnsafeUnpin for EvidentialPair
impl UnwindSafe for EvidentialPair
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.