예제 #1
0
 public void PrintPriorPi()
 {
     for (int i = 0; i < logPi.GetLength(0); i++)
     {
         Console.Write("{0:.00} ", MathE.eexp(logPi[i]));
     }
     Console.WriteLine();
 }
예제 #2
0
 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();
     }
 }
예제 #3
0
        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);
        }