C# Class Accord.Statistics.Models.Markov.Topology.Custom

Inheritance: ITopology
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Create ( bool logarithm, double &transitionMatrix, double &initialState ) : int

Creates the state transitions matrix and the initial state probabilities for this topology.

Custom ( double transitions, double initial ) : System

Creates a new custom topology with user-defined transition matrix and initial state probabilities.

Custom ( double transitions, double initial, bool logarithm ) : System

Creates a new custom topology with user-defined transition matrix and initial state probabilities.

Method Details

Create() public method

Creates the state transitions matrix and the initial state probabilities for this topology.
public Create ( bool logarithm, double &transitionMatrix, double &initialState ) : int
logarithm bool
transitionMatrix double
initialState double
return int

Custom() public method

Creates a new custom topology with user-defined transition matrix and initial state probabilities.
public Custom ( double transitions, double initial ) : System
transitions double The transition probabilities for the model.
initial double The initial probabilities for the model.
return System

Custom() public method

Creates a new custom topology with user-defined transition matrix and initial state probabilities.
public Custom ( double transitions, double initial, bool logarithm ) : System
transitions double The transition probabilities for the model.
initial double The initial probabilities for the model.
logarithm bool Set to true if the passed transitions are given /// in log-probabilities. Default is false (given values are probabilities).
return System