aGrUM  0.14.2
ICPTDisturber.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Christophe GONZALES and Pierre-Henri WUILLEMIN *
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  ***************************************************************************/
20 
27 #ifndef GUM_I_CPT_DISTURBER_H
28 #define GUM_I_CPT_DISTURBER_H
29 
30 #include <agrum/BN/BayesNet.h>
31 #include <agrum/agrum.h>
33 
34 namespace gum {
43  template < typename GUM_SCALAR >
44  class ICPTDisturber {
45  public:
46  // ############################################################################
48  // ############################################################################
50 
53  ICPTDisturber();
54 
58  virtual ~ICPTDisturber();
60 
61  // ############################################################################
63  // ############################################################################
71  virtual void disturbReducCPT(NodeId node,
72  BayesNet< GUM_SCALAR >& bayesNet,
73  Potential< GUM_SCALAR >& src,
74  Potential< GUM_SCALAR >& marg) = 0;
75 
83  virtual void disturbAugmCPT(NodeId node,
84  BayesNet< GUM_SCALAR >& bayesNet,
85  Potential< GUM_SCALAR >& src,
86  GUM_SCALAR variation) = 0;
87  };
88 
89 
90 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
91  extern template class ICPTDisturber< double >;
92 #endif
93 
94 
95 } /* namespace gum */
96 
98 #endif // GUM_I_CPT_DISTURBER_H
Abstract class for disturbing Conditional Probability Tables.
Class representing Bayesian networks.
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
Header of the Potential class.
Size NodeId
Type for node ids.
Definition: graphElements.h:97