![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
<agrum/BN/generator/simpleCPTDisturber.h> More...
#include <simpleCPTDisturber.h>
Inherits gum::ICPTDisturber< GUM_SCALAR >.
Public Member Functions | |
Constructors / Destructor | |
SimpleCPTDisturber () | |
Default constructor. More... | |
~SimpleCPTDisturber () override | |
Destructor. More... | |
CPT disturbing methods | |
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. More... | |
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. More... | |
<agrum/BN/generator/simpleCPTDisturber.h>
Class for disturbing Conditional Probability Tables.
This class implements a CPTGenerator CPT generation algorithm.
Definition at line 47 of file simpleCPTDisturber.h.
INLINE gum::SimpleCPTDisturber< GUM_SCALAR >::SimpleCPTDisturber | ( | ) |
Default constructor.
Definition at line 34 of file simpleCPTDisturber_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
override |
Destructor.
Definition at line 40 of file simpleCPTDisturber_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
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 73 of file simpleCPTDisturber_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
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 49 of file simpleCPTDisturber_tpl.h.
References gum::Set< Key, Alloc >::emplace().