Darwin
1.10(beta)
|
Implements sum-product inference. More...
Public Member Functions | |
drwnSumProdInference (const drwnFactorGraph &graph) | |
void | marginal (drwnTableFactor &belief) const |
return the belief over the variables in the given factor, which must be one of the cliques in the original factor graph | |
![]() | |
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 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 | |
Protected Member Functions | |
void | buildComputationGraph () |
![]() | |
virtual void | initializeMessages () |
Additional Inherited Members | |
![]() | |
static unsigned | MAX_ITERATIONS = 1000 |
maximum number of iterations | |
![]() | |
vector< drwnTableFactor * > | _forwardMessages |
vector< drwnTableFactor * > | _backwardMessages |
vector< drwnTableFactor * > | _oldForwardMessages |
vector< drwnTableFactor * > | _oldBackwardMessages |
vector< drwnTableFactor * > | _intermediateFactors |
vector< drwnFactorOperation * > | _computations |
vector< drwnTableFactorStorage * > | _sharedStorage |
![]() | |
const drwnFactorGraph & | _graph |
Implements sum-product inference.