Closed godai0519 closed 9 years ago
各lambda_k_とpi_i_の値のブレがepsilon以下になった時に終了するタイプのアルゴリズム.
とりあえず動いた. 近似収束・ループ停止部分のコードを書いてないので,それを書く. forが今は100回程度で固定になっていると思う.
for
3ff79370352ef34384b7e7ea6432c10964e4d26b で収束条件追加
んー.とりあえずmergeして閉じます.
5 でBP法が正しく再実装できたので,Loopy-BP法を実装する基盤が整った.
各lambda_k_とpi_i_の値のブレがepsilon以下になった時に終了するタイプのアルゴリズム.