aGrUM  0.14.2
IInfluenceDiagramInference.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Pierre-Henri WUILLEMIN et Christophe GONZALES *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
28 #ifndef GUM_IINFLUENCE_DIAGRAM_INFERENCE_H
29 #define GUM_IINFLUENCE_DIAGRAM_INFERENCE_H
30 
32 #include <agrum/agrum.h>
33 
34 namespace gum {
42  template < typename GUM_SCALAR >
44  public:
49  const InfluenceDiagram< GUM_SCALAR >& infDiag);
50 
55 
59  virtual void makeInference() = 0;
60 
68  virtual void insertEvidence(
69  const List< const Potential< GUM_SCALAR >* >& evidenceList) = 0;
70 
74  virtual void eraseEvidence(const Potential< GUM_SCALAR >* evidence) = 0;
75 
79  virtual void eraseAllEvidence() = 0;
80 
87 
92  virtual GUM_SCALAR getMEU() = 0;
93 
102  virtual Idx getBestDecisionChoice(NodeId decisionId) = 0;
103 
104  protected:
109  };
110 
111 } /* namespace gum */
112 
114 
115 #endif /* GUM_IINFLUENCE_DIAGRAM_INFERENCE_H */
aGrUM&#39;s Potential is a multi-dimensional array with tensor operators.
Definition: potential.h:57
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.
Class representing Influence Diagrams.
virtual void makeInference()=0
Makes the inference.
Generic doubly linked lists.
Definition: list.h:369
gum is the global namespace for all aGrUM entities
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.
Implementation of the non pure virtual methods of IInfluenceDiagramInference.
virtual void eraseAllEvidence()=0
Remove all evidence from the graph.
Size Idx
Type for indexes.
Definition: types.h:50
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:97
Class representing an Influence Diagram.