昔、C言語で作ったやつをなくしてしまったのでC#で書いてみました。HMM (Hidden Markov Model, 隠れマルコフモデル)において、最尤状態列を計算します。 かなりやっつけで書いてるの後でリファクタリングしたいなぁ。 Dictionary<string, KeyValuePair<string, double>> T = new Dictionary<string, KeyValuePair<string, double>>(); foreach (string state in states) { T.Add(state, new KeyValuePair<string,double>(state, sp[state])); } foreach (string output in observations) { Dictionary<string, KeyValuePai