Implementing the Belief Propagation Algorithm in MATLAB
Factor Graphs and the Sum Product Algorithm