/// <summary> /// Advances the enumerator to the next element of the collection. /// </summary> /// <returns> /// true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. /// </returns> /// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created. </exception> public bool MoveNextDistribution() { RowOfCurrentDistribution++; if (RowOfCurrentDistribution >= _rowHOfCurrentState) { return(false); } return(_matrixEnumerator.MoveRow(RowOfCurrentDistribution)); }
public void SelectInitialDistribution() { CurrentState = -1; _enumerator.MoveRow(_markovChain.RowOfInitialStates); }