aGrUM  0.16.0
evidenceInference_tpl.h
Go to the documentation of this file.
1 
30 namespace gum {
31 
32 
33  // Default Constructor
34  template < typename GUM_SCALAR >
36  const IBayesNet< GUM_SCALAR >* bn) :
37  BayesNetInference< GUM_SCALAR >(bn) {
38  // assign a BN if this has not been done before (due to virtual inheritance)
39  if (this->__bn == nullptr) {
41  }
42 
43  GUM_CONSTRUCTOR(EvidenceInference);
44  }
45 
46 
47  // Destructor
48  template < typename GUM_SCALAR >
50  GUM_DESTRUCTOR(EvidenceInference);
51  }
52 
53 
54 } /* 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:62
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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