Ejemplo n.º 1
0
 internal void AddTransition(int markovChainState, double probability)
 {
     ProbabilityMatrix.AddColumnValueToCurrentRow(new SparseDoubleMatrix.ColumnValue(StateToColumn(markovChainState), probability));
     Transitions++;
 }
Ejemplo n.º 2
0
 internal void AddInitialTransition(int markovChainState, double probability)
 {
     // initial state probabilities are also saved in the ProbabilityMatrix
     ProbabilityMatrix.AddColumnValueToCurrentRow(new SparseDoubleMatrix.ColumnValue(StateToColumn(markovChainState), probability));
     InitialTransitions++;
 }