28 #ifndef GUM_LOOPYBELIEFPROPAGATION_H 29 #define GUM_LOOPYBELIEFPROPAGATION_H 41 template <
typename GUM_SCALAR >
102 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 103 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 107 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 108 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 117 #endif // GUM_LOOPYBELIEFPROPAGATION_H aGrUM's Potential is a multi-dimensional array with tensor operators.
virtual void _onBayesNetChanged(const IBayesNet< GUM_SCALAR > *bn)
fired after a new Bayes net has been assigned to the engine
virtual void _onStateChanged()
fired when the stage is changed
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual void _onAllEvidenceErased(bool contains_hard_evidence)
fired before all the evidence are erased
virtual void _onEvidenceAdded(const NodeId id, bool isHardEvidence)
fired after a new evidence is inserted
virtual void _onMarginalTargetErased(const NodeId id)
fired before a marginal target is removed
Class representing the minimal interface for Bayesian Network.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Potential< GUM_SCALAR > __computeProdLambda(NodeId X)
The class for generic Hash Tables.
virtual ~LoopyBeliefPropagation()
Destructor.
virtual void _onMarginalTargetAdded(const NodeId id)
fired after a new marginal target is inserted
virtual void _onEvidenceChanged(const NodeId id, bool hasChangedSoftHard)
fired after an evidence is changed, in particular when its status (soft/hard) changes ...
GUM_SCALAR __updateNodeMessage(NodeId X)
<agrum/BN/inference/loopyBeliefPropagation.h>
LoopyBeliefPropagation(const IBayesNet< GUM_SCALAR > *bn)
Default constructor.
virtual void _onAllMarginalTargetsAdded()
fired after all the nodes of the BN are added as marginal targets
ArcProperty< Potential< GUM_SCALAR > > __messages
virtual const Potential< GUM_SCALAR > & _posterior(NodeId id)
asks derived classes for the posterior of a given variable
virtual void _onEvidenceErased(const NodeId id, bool isHardEvidence)
fired before an evidence is removed
virtual void _onAllMarginalTargetsErased()
fired before a all marginal targets are removed
NodeProperty< Potential< GUM_SCALAR > > __posteriors
virtual void _makeInference()
called when the inference has to be performed effectively
Potential< GUM_SCALAR > __computeProdPi(NodeId X)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Size NodeId
Type for node ids.
virtual void _updateOutdatedBNStructure()
prepares inference when the latter is in OutdatedBNStructure state
virtual void _updateOutdatedBNPotentials()
prepares inference when the latter is in OutdatedBNPotentials state