Click or drag to resize
Accord.NET (logo)

Ergodic Class

Ergodic (fully-connected) Topology for Hidden Markov Models.
Inheritance Hierarchy
SystemObject
  Accord.Statistics.Models.Markov.TopologyErgodic

Namespace:  Accord.Statistics.Models.Markov.Topology
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public class Ergodic : ITopology
Request Example View Source

The Ergodic type exposes the following members.

Constructors
  NameDescription
Public methodErgodic(Int32)
Creates a new Ergodic topology for a given number of states.
Public methodErgodic(Int32, Boolean)
Creates a new Ergodic topology for a given number of states.
Top
Properties
  NameDescription
Public propertyRandom
Gets or sets whether the transition matrix should be initialized with random probabilities or not. Default is false.
Public propertyStates
Gets the number of states in this topology.
Top
Methods
  NameDescription
Public methodCreate
Creates the state transitions matrix and the initial state probabilities for this topology.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
Remarks

Ergodic models are commonly used to represent models in which a single (large) sequence of observations is used for training (such as when a training sequence does not have well defined starting and ending points and can potentially be infinitely long).

Models starting with an ergodic transition-state topology typically have only a small number of states.

References:

  • 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: http://compbio.soe.ucsc.edu/html_format_papers/hughkrogh96/cabios.html

Examples

In a second example, we will create an Ergodic (fully connected) discrete-density hidden Markov model with uniform probabilities.

// Create a new Ergodic hidden Markov model with three
//   fully-connected states and four sequence symbols.
var model = new HiddenMarkovModel(new Ergodic(3), 4);

// After creation, the state transition matrix for the model
// should be given by:
// 
//       { 0.33, 0.33, 0.33 }
//       { 0.33, 0.33, 0.33 }
//       { 0.33, 0.33, 0.33 }
//       
// in which all state transitions are allowed.
See Also