35 #define DEFAULT_VIRTUAL_LBP_SIZE 5000 40 template <
typename GUM_SCALAR,
template <
typename >
class APPROX >
49 template <
typename GUM_SCALAR,
template <
typename >
class APPROX >
55 template <
typename GUM_SCALAR,
template <
typename >
class APPROX >
58 for (
const auto x : this->hardEvidence()) {
63 if (!this->isSetEstimator) {
67 this->_loopApproxInference();
#define DEFAULT_VIRTUAL_LBP_SIZE
Class representing the minimal interface for Bayesian Network.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual void makeInference() final
perform the heavy computations needed to compute the targets' posteriors
virtual ~LoopySamplingInference()
destructor
virtual void addEvidence(NodeId id, const Idx val) final
adds a new hard evidence on node id
<agrum/BN/inference/loopyBeliefPropagation.h>
virtual void _makeInference()
makes the inference by generating samples w.r.t the mother class' sampling method after initalizing e...
LoopySamplingInference(const IBayesNet< GUM_SCALAR > *bn)
Default constructor.
GUM_SCALAR _virtualLBPSize
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
<agrum/BN/inference/loopySamplingInference.h>