Implements generic message-passing algorithms on factor graphs. See derived classes for specific algorithms.
More...
|
| drwnMessagePassingInference (const drwnFactorGraph &graph) |
|
void | clear () |
| clear internally cached data (e.g., computation graph)
|
|
bool | inference () |
| run inference (or resume for iterative algorithms) and return true if converged
|
|
| drwnInference (const drwnFactorGraph &graph) |
| reference to initial clique potentials
|
|
| drwnInference (const drwnInference &inf) |
|
virtual void | marginal (drwnTableFactor &belief) const =0 |
| return the belief over the variables in the given factor, which must be one of the cliques in the original factor graph
|
|
virtual drwnFactorGraph | varMarginals () const |
| returns marginals for each variable in the factor graph's universe
|
|
drwnTableFactor | operator[] (int varIndx) const |
| return the marginal distribution over variable varIndx
|
|
drwnTableFactor | operator[] (const char *varName) const |
| return the marginal distribution over variable varName
|
|
Implements generic message-passing algorithms on factor graphs. See derived classes for specific algorithms.