Skip to content


class HiddenMarkovModel<Parameter, State, Observation> < MarkovModel<Parameter, State>

Hidden Markov Model (HMM) or state-space model (SSM).

The joint distribution is:

Typically the are observed, although they need not be.

Graphical model depicting HiddenMarkovModel/StateSpaceModel.

A model inheriting from HiddenMarkovModel/StateSpaceModel overrides the parameter, initial, transition and observation member fibers to specify the individual components of the joint distribution.

Member Variables

Name Description
y:List<Observation> Observations.
g:ListNode<Observation>? Current observation during simulation.

Member Functions

Name Description
step Step.

Member Fibers

Name Description
observation Observation model.

Member Function Details


function step() -> Real

Step. Simulates the initial state, or the transition to the next state, and an observation.

Member Fiber Details


fiber observation(y:Observation, x:State, θ:Parameter) -> Event

Observation model.

  • y: The observations, to be set.
  • x: The current state.
  • θ: The parameters.