logo
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.

End probability given the HMM 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

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

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.