Esempio n. 1
0
        private static string[] GetMaxProbPath(Viterbi V)
        {
            string[] MaxProbPath = new string[InputManager.Sequence.Count + 2];
            HMM Hmm = InputManager.HmmList.Find (x => x.Name == "E");
            for(int I = InputManager.Sequence.Count + 1; I >= 0; I--)
            {
                ViterbiResult VR = V.GetResult(I, Hmm);

                MaxProbPath[I] = VR.StateName;
                Hmm = InputManager.HmmList.Find(x => x.Name == VR.PrevStateName);
            }
            return MaxProbPath;
        }