![]() |
aGrUM
0.16.0
|
<agrum/BN/inference/loopySamplingInference.h> More...
#include <loopySamplingInference.h>
Public Member Functions | |
LoopySamplingInference (const IBayesNet< GUM_SCALAR > *bn) | |
Default constructor. More... | |
virtual | ~LoopySamplingInference () |
destructor More... | |
virtual void | _makeInference () |
makes the inference by generating samples w.r.t the mother class' sampling method after initalizing estimators with loopy belief propagation More... | |
void | setVirtualLBPSize (GUM_SCALAR vlbpsize) |
Protected Attributes | |
GUM_SCALAR | _virtualLBPSize |
<agrum/BN/inference/loopySamplingInference.h>
class for making hybrid sampling inference with loopy belief propagation and an approximation inference method in bayesian networks.
This class inherits of template class APPROX, which SHOULD be one of the 4 approximate inference methods (MonteCarlo, Weighted, Importance, Gibbs). It makes the inference with respect to the inherited class' method, after having initialized the estimators with the posteriors obtained by running LoopyBeliefPropagation algorithm.
Definition at line 59 of file loopySamplingInference.h.
|
explicit |
Default constructor.
Definition at line 41 of file loopySamplingInference_tpl.h.
|
virtual |
destructor
Definition at line 50 of file loopySamplingInference_tpl.h.
|
virtual |
makes the inference by generating samples w.r.t the mother class' sampling method after initalizing estimators with loopy belief propagation
Definition at line 56 of file loopySamplingInference_tpl.h.
References gum::LoopySamplingInference< GUM_SCALAR, APPROX >::_virtualLBPSize, gum::BayesNetInference< GUM_SCALAR >::addEvidence(), and gum::BayesNetInference< GUM_SCALAR >::makeInference().
|
inline |
Definition at line 75 of file loopySamplingInference.h.
References gum::LoopySamplingInference< GUM_SCALAR, APPROX >::_virtualLBPSize.
|
protected |
Definition at line 77 of file loopySamplingInference.h.
Referenced by gum::LoopySamplingInference< GUM_SCALAR, APPROX >::_makeInference(), and gum::LoopySamplingInference< GUM_SCALAR, APPROX >::setVirtualLBPSize().