Ergodic Class |
Namespace: Accord.Statistics.Models.Markov.Topology
The Ergodic type exposes the following members.
Name | Description | |
---|---|---|
Ergodic(Int32) |
Creates a new Ergodic topology for a given number of states.
| |
Ergodic(Int32, Boolean) |
Creates a new Ergodic topology for a given number of states.
|
Name | Description | |
---|---|---|
Random |
Gets or sets whether the transition matrix
should be initialized with random probabilities
or not. Default is false.
| |
States |
Gets the number of states in this topology.
|
Name | Description | |
---|---|---|
Create |
Creates the state transitions matrix and the
initial state probabilities for this topology.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(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.) | |
ToT | 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.) |
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:
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.