Click or drag to resize
Accord.NET (logo)

ITopology Interface

Hidden Markov model topology (architecture) specification.

Namespace:  Accord.Statistics.Models.Markov.Topology
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
public interface ITopology
Request Example View Source

The ITopology type exposes the following members.

Public propertyStates
Gets the number of states in this topology.
Public methodCreate
Creates the state transitions matrix and the initial state probabilities for this topology.

An Hidden Markov Model Topology specifies how many states and which initial probabilities a Markov model should have. Two common topologies can be discussed in terms of transition state probabilities and are available to construction through the Ergodic and Forward classes implementing this interface.

Topology specification is important with regard to both learning and performance: A model with too many states (and thus too many settable parameters) will require too much training data while an model with an insufficient number of states will prohibit the HMM from capturing subtle statistical patterns.


  • Alexander Schliep, "Learning Hidden Markov Model Topology".
  • Richard Hughey and Anders Krogh, "Hidden Markov models for sequence analysis: extension and analysis of the basic method", CABIOS 12(2):95-107, 1996. Available in:

See Also