aGrUM  0.16.0
simpleCPTDisturber.h
Go to the documentation of this file.
1 
30 #ifndef GUM_SIMPLE_CPT_DISTURBER_H
31 #define GUM_SIMPLE_CPT_DISTURBER_H
32 
33 #include <cstdlib>
34 
36 #include <agrum/agrum.h>
37 
38 namespace gum {
39 
47  template < typename GUM_SCALAR >
48  class SimpleCPTDisturber : public ICPTDisturber< GUM_SCALAR > {
49  public:
50  // ############################################################################
52  // ############################################################################
54 
58 
62  ~SimpleCPTDisturber() override;
64 
65  // ############################################################################
67  // ############################################################################
69 
76  void disturbReducCPT(NodeId node,
77  BayesNet< GUM_SCALAR >& bayesNet,
79  Potential< GUM_SCALAR >& marg) override;
80 
88  void disturbAugmCPT(NodeId node,
89  BayesNet< GUM_SCALAR >& bayesNet,
91  GUM_SCALAR variation) override;
92  };
93 
94 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
95  extern template class SimpleCPTDisturber< double >;
96 #endif
97 
98 } /* namespace gum */
99 
101 #endif // SIMPLECPTDISTURBER_H
aGrUM&#39;s Potential is a multi-dimensional array with tensor operators.
Definition: potential.h:60
Class representing a Bayesian Network.
Definition: BayesNet.h:78
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
<agrum/BN/generator/simpleCPTDisturber.h>
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void disturbAugmCPT(NodeId node, BayesNet< GUM_SCALAR > &bayesNet, Potential< GUM_SCALAR > &src, GUM_SCALAR variation) override
Disturb a CPT using GUM_SCALAR when inserting a new parent new_parent.
SimpleCPTDisturber()
Default constructor.
~SimpleCPTDisturber() override
Destructor.
void disturbReducCPT(NodeId node, BayesNet< GUM_SCALAR > &bayesNet, Potential< GUM_SCALAR > &src, Potential< GUM_SCALAR > &marg) override
Disturb a CPT using GUM_SCALAR when removing parent varIdi.
Size NodeId
Type for node ids.
Definition: graphElements.h:98