pub struct Model<Dist: Continuous<f64, f64>> { /* private fields */ }
Expand description

Implementation of a hmm::Model with emission values from univariate continuous distributions.

Log-scale probabilities are used for numeric stability.

Implementations

Construct new Hidden MarkovModel with the given transition, observation, and initial state matrices and vectors already in log-probability space.

Construct new Hidden MarkovModel with the given transition, observation, and initial state matrices and vectors already as Prob values.

Construct new Hidden MarkovModel with the given transition, observation, and initial state matrices and vectors with probabilities as f64 values.

Trait Implementations

The number of states in the model.
Return iterator over the states of an HMM.
Returns an iterator of all transitions.
Transition probability between two states from and to.
Initial probability given the HMM state.
Probability for the given observation in the given state.
Transition probability between two states from and to for observation with index _to_idx (index of to). Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.