Loading [MathJax]/extensions/tex2jax.js
mrf  v0.2.0
All Data Structures Files Functions Pages

◆ bp()

void bp ( struct Node **  nodes,
int  num_nodes,
int  num_iterations 
)

Loopy belief propagation.

Parameters
nodesThe set of nodes for which to run BP. Probably should be all nodes in the MRF.
num_nodesThe number of nodes.
num_iterationsNumber of iterations for which to run loopy bp. If the graph is a tree, set to 3 for analytical results.