aGrUM  0.13.2
evidenceInference_tpl.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  ***************************************************************************/
27 namespace gum {
28 
29 
30  // Default Constructor
31  template < typename GUM_SCALAR >
33  const IBayesNet< GUM_SCALAR >* bn) :
34  BayesNetInference< GUM_SCALAR >(bn) {
35  // assign a BN if this has not been done before (due to virtual inheritance)
36  if (this->__bn == nullptr) {
38  }
39 
40  GUM_CONSTRUCTOR(EvidenceInference);
41  }
42 
43 
44  // Destructor
45  template < typename GUM_SCALAR >
47  GUM_DESTRUCTOR(EvidenceInference);
48  }
49 
50 
51 } /* namespace gum */
void __setBayesNetDuringConstruction(const IBayesNet< GUM_SCALAR > *bn)
assigns a BN during the inference engine construction
const IBayesNet< GUM_SCALAR > * __bn
the Bayes net on which we perform inferences
Class representing the minimal interface for Bayesian Network.
Definition: IBayesNet.h:59
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
<agrum/BN/inference/BayesNetInference.h>
<agrum/BN/inference/evidenceInference.h>
virtual ~EvidenceInference()
destructor
EvidenceInference(const IBayesNet< GUM_SCALAR > *bn)
default constructor