pub struct TritEvidenceVec {
pub dimensions: Vec<String>,
pub values: Vec<f32>,
pub weights: Vec<f32>,
}Expand description
A named, weighted multi-dimensional evidence vector.
Fields§
§dimensions: Vec<String>§values: Vec<f32>§weights: Vec<f32>Implementations§
Source§impl TritEvidenceVec
impl TritEvidenceVec
pub fn new(dimensions: Vec<String>, values: Vec<f32>, weights: Vec<f32>) -> Self
Sourcepub fn aggregate(&self) -> TritScalar
pub fn aggregate(&self) -> TritScalar
Weighted mean of all evidence values → TritScalar.
Sourcepub fn scalars(&self) -> Vec<TritScalar>
pub fn scalars(&self) -> Vec<TritScalar>
Per-dimension scalars (not weighted — raw values for inspection).
Sourcepub fn dominant(&self) -> Option<(&str, TritScalar)>
pub fn dominant(&self) -> Option<(&str, TritScalar)>
The dimension with the strongest absolute signal (most decisive input).
Auto Trait Implementations§
impl Freeze for TritEvidenceVec
impl RefUnwindSafe for TritEvidenceVec
impl Send for TritEvidenceVec
impl Sync for TritEvidenceVec
impl Unpin for TritEvidenceVec
impl UnsafeUnpin for TritEvidenceVec
impl UnwindSafe for TritEvidenceVec
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> 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