aGrUM  0.16.0
IInfluenceDiagramInference.h
Go to the documentation of this file.
1 
31 #ifndef GUM_IINFLUENCE_DIAGRAM_INFERENCE_H
32 #define GUM_IINFLUENCE_DIAGRAM_INFERENCE_H
33 
35 #include <agrum/agrum.h>
36 
37 namespace gum {
45  template < typename GUM_SCALAR >
47  public:
52  const InfluenceDiagram< GUM_SCALAR >& infDiag);
53 
58 
62  virtual void makeInference() = 0;
63 
71  virtual void insertEvidence(
72  const List< const Potential< GUM_SCALAR >* >& evidenceList) = 0;
73 
77  virtual void eraseEvidence(const Potential< GUM_SCALAR >* evidence) = 0;
78 
82  virtual void eraseAllEvidence() = 0;
83 
90 
95  virtual GUM_SCALAR getMEU() = 0;
96 
105  virtual Idx getBestDecisionChoice(NodeId decisionId) = 0;
106 
107  protected:
112  };
113 
114 } /* namespace gum */
115 
117 
118 #endif /* GUM_IINFLUENCE_DIAGRAM_INFERENCE_H */
aGrUM&#39;s Potential is a multi-dimensional array with tensor operators.
Definition: potential.h:60
virtual Idx getBestDecisionChoice(NodeId decisionId)=0
Returns best choice for decision variable given in parameter ( based upon MEU criteria ) ...
const InfluenceDiagram< GUM_SCALAR > & influenceDiagram() const
Returns a constant reference over the InfluenceDiagram on which this class work.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual void makeInference()=0
Makes the inference.
Generic doubly linked lists.
Definition: list.h:372
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
const InfluenceDiagram< GUM_SCALAR > & __infDiag
The Bayes net we wish to perform inference on.
virtual void insertEvidence(const List< const Potential< GUM_SCALAR > * > &evidenceList)=0
Insert new evidence in the graph.
IInfluenceDiagramInference(const InfluenceDiagram< GUM_SCALAR > &infDiag)
Default constructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual void eraseAllEvidence()=0
Remove all evidence from the graph.
Size Idx
Type for indexes.
Definition: types.h:53
virtual void eraseEvidence(const Potential< GUM_SCALAR > *evidence)=0
Remove a given evidence from the graph.
<agrum/ID/inference/IInfluenceDiagramInference.h>
virtual ~IInfluenceDiagramInference()
Destructor.
virtual GUM_SCALAR getMEU()=0
Returns maximum expected utility obtained from inference.
Size NodeId
Type for node ids.
Definition: graphElements.h:98
Class representing an Influence Diagram.