昔、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
![C#でViterbiアルゴリズム - Inside Apricot](https://cdn-ak-scissors.b.st-hatena.com/image/square/db9e6462140c560337958313b36e3c54d0678e2a/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fk%2Fkawatan%2F20071014%2F20071014012439.png)