pub struct StatePrediction {
pub current: Option<LatentStateId>,
pub candidates: Vec<(LatentStateId, f64)>,
pub confidence: f64,
}Expand description
A prediction about which latent state comes next.
Fields§
§current: Option<LatentStateId>§candidates: Vec<(LatentStateId, f64)>Candidate successors with probabilities, most likely first.
confidence: f64Confidence in the whole distribution.
Implementations§
Source§impl StatePrediction
impl StatePrediction
pub fn most_likely(&self) -> Option<(LatentStateId, f64)>
Trait Implementations§
Source§impl Clone for StatePrediction
impl Clone for StatePrediction
Source§impl Debug for StatePrediction
impl Debug for StatePrediction
Source§impl<'de> Deserialize<'de> for StatePrediction
impl<'de> Deserialize<'de> for StatePrediction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StatePrediction
impl PartialEq for StatePrediction
Source§impl Serialize for StatePrediction
impl Serialize for StatePrediction
impl StructuralPartialEq for StatePrediction
Auto Trait Implementations§
impl Freeze for StatePrediction
impl RefUnwindSafe for StatePrediction
impl Send for StatePrediction
impl Sync for StatePrediction
impl Unpin for StatePrediction
impl UnsafeUnpin for StatePrediction
impl UnwindSafe for StatePrediction
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