aGrUM  0.17.2
a C++ library for (probabilistic) graphical models
evidenceInference.h
Go to the documentation of this file.
1 
31 #ifndef GUM_BAYES_NET_EVIDENCE_INFERENCE_H
32 #define GUM_BAYES_NET_EVIDENCE_INFERENCE_H
33 
35 #include <agrum/agrum.h>
36 
37 
38 namespace gum {
39 
40 
51  template < typename GUM_SCALAR >
52  class EvidenceInference: public virtual BayesNetInference< GUM_SCALAR > {
53  public:
54  // ############################################################################
56  // ############################################################################
58 
60 
62  explicit EvidenceInference(const IBayesNet< GUM_SCALAR >* bn);
63 
65  virtual ~EvidenceInference();
66 
68 
69 
70  // ############################################################################
72  // ############################################################################
74 
76  virtual GUM_SCALAR evidenceProbability() = 0;
77 
79  };
80 
81 
82 } // namespace gum
83 
84 
86 
87 
88 #endif // GUM_BAYES_NET_EVIDENCE_INFERENCE_H
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Definition: agrum.h:25
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
virtual GUM_SCALAR evidenceProbability()=0
returns the probability P(e) of the evidence enterred into the BN
virtual ~EvidenceInference()
destructor
EvidenceInference(const IBayesNet< GUM_SCALAR > *bn)
default constructor