pub struct SimpleHMM {
pub num_states: usize,
pub num_observations: usize,
pub initial_distribution: Array1<f64>,
pub transition_probabilities: Array2<f64>,
pub emission_probabilities: Array2<f64>,
}Expand description
Simple HMM representation for parameter learning.
This is a standalone representation with explicit parameter matrices, designed for efficient parameter learning algorithms like Baum-Welch.
Fields§
§num_states: usizeNumber of hidden states
num_observations: usizeNumber of observable symbols
initial_distribution: Array1<f64>Initial state distribution π: [num_states]
transition_probabilities: Array2<f64>Transition probabilities A: [from_state, to_state]
emission_probabilities: Array2<f64>Emission probabilities B: [state, observation]
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimpleHMM
impl RefUnwindSafe for SimpleHMM
impl Send for SimpleHMM
impl Sync for SimpleHMM
impl Unpin for SimpleHMM
impl UnwindSafe for SimpleHMM
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