Click or drag to resize
Accord.NET (logo)

Custom Class

Custom Topology for Hidden Markov Model.
Inheritance Hierarchy
SystemObject
  Accord.Statistics.Models.Markov.TopologyCustom

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

The Custom type exposes the following members.

Constructors
  NameDescription
Public methodCustom(Double, Double)
Creates a new custom topology with user-defined transition matrix and initial state probabilities.
Public methodCustom(Double, Double)
Creates a new custom topology with user-defined transition matrix and initial state probabilities.
Public methodCustom(Double, Double, Boolean)
Creates a new custom topology with user-defined transition matrix and initial state probabilities.
Public methodCustom(Double, Double, Boolean)
Creates a new custom topology with user-defined transition matrix and initial state probabilities.
Top
Properties
  NameDescription
Public propertyInitial
Gets the initial state probabilities.
Public propertyStates
Gets the number of states in this topology.
Public propertyTransitions
Gets the state-transitions matrix.
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

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 the ITopology 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.

This custom implementation allows for arbitrarily specification of the state transition matrix and initial state probabilities for hidden Markov models.

See Also