TrConfPair
vectorlib::TrConfPair — fields, methods, parameters and return types.
pub struct TrConfPair<T>A value with a confidence (tr_conf_pair<T>).
Methods
Prop
Type
new
pub const fn new(principal: T, confidence: f32) -> SelfA value with its confidence.
Parameters
Prop
Type
Returns
Selfset_confidence
pub fn set_confidence(&mut self, confidence: f32)Set the confidence.
Parameters
Prop
Type
Returns
()set_value
pub fn set_value(&mut self, principal: T)Set the value.
Parameters
Prop
Type
Returns
()get_value
pub fn get_value(&self) -> TThe value.
Returns
Tget_confidence
pub fn get_confidence(&self) -> f32The confidence.
Returns
f32