![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
<agrum/BN/generator/simpleCPTDisturber.h> More...
#include <simpleCPTDisturber.h>
Public Member Functions | |
Constructors / Destructor | |
| SimpleCPTDisturber () | |
| Default constructor. | |
| ~SimpleCPTDisturber () override | |
| Destructor. | |
CPT disturbing methods | |
| void | disturbReducCPT (NodeId node, BayesNet< GUM_SCALAR > &bayesNet, Tensor< GUM_SCALAR > &src, Tensor< GUM_SCALAR > &marg) override |
| Disturb a CPT using GUM_SCALAR when removing parent varIdi. | |
| void | disturbAugmCPT (NodeId node, BayesNet< GUM_SCALAR > &bayesNet, Tensor< GUM_SCALAR > &src, GUM_SCALAR variation) override |
| Disturb a CPT using GUM_SCALAR when inserting a new parent new_parent. | |
<agrum/BN/generator/simpleCPTDisturber.h>
Class for disturbing Conditional Probability Tables.
This class implements a CPTGenerator CPT generation algorithm.
Definition at line 68 of file simpleCPTDisturber.h.
| INLINE gum::SimpleCPTDisturber< GUM_SCALAR >::SimpleCPTDisturber | ( | ) |
Default constructor.
Definition at line 55 of file simpleCPTDisturber_tpl.h.
References SimpleCPTDisturber().
Referenced by SimpleCPTDisturber(), and ~SimpleCPTDisturber().
|
override |
Destructor.
Definition at line 61 of file simpleCPTDisturber_tpl.h.
References SimpleCPTDisturber().
|
override |
Disturb a CPT using GUM_SCALAR when inserting a new parent new_parent.
| node | A reference on the CPT owner. |
| bayesNet | the Bayesian network. |
| src | copy of the CPT before augmentation. |
| variation | degree of variation from the initial probability. |
Definition at line 94 of file simpleCPTDisturber_tpl.h.
|
override |
Disturb a CPT using GUM_SCALAR when removing parent varIdi.
| node | The variable on the CPT owner. |
| bayesNet | the Bayesian network. |
| src | copy of the CPT before reduction. |
| marg | of the inference before reduction on the node varIdi. |
Definition at line 70 of file simpleCPTDisturber_tpl.h.
References gum::Instantiation::end(), gum::Instantiation::setFirst(), and gum::Instantiation::setVals().