public void PrintPriorPi() { for (int i = 0; i < logPi.GetLength(0); i++) { Console.Write("{0:.00} ", MathE.eexp(logPi[i])); } Console.WriteLine(); }
public void PrintTransitions() { for (int j = 0; j < logTransition.GetLength(1); j++) { for (int i = 0; i < logTransition.GetLength(0); i++) { Console.Write("{0:.00} ", MathE.eexp(logTransition[i, j])); } Console.WriteLine(); } }
private double EvaluateProb(int T, double[,] logAlpha) { int N = states; double prob = 0; for (int i = 0; i < N; i++) { prob += MathE.eexp(logAlpha[T - 1, i]); } return(prob); }