![]() |
aGrUM
0.16.0
|
<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 48 of file simpleCPTDisturber.h.
INLINE gum::SimpleCPTDisturber< GUM_SCALAR >::SimpleCPTDisturber | ( | ) |
Default constructor.
Definition at line 35 of file simpleCPTDisturber_tpl.h.
|
override |
Destructor.
Definition at line 42 of file simpleCPTDisturber_tpl.h.
|
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 76 of file simpleCPTDisturber_tpl.h.
References gum::BayesNet< GUM_SCALAR >::cpt(), gum::MultiDimDecorator< GUM_SCALAR >::get(), and gum::randomProba().
|
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 51 of file simpleCPTDisturber_tpl.h.
References gum::BayesNet< GUM_SCALAR >::cpt(), gum::MultiDimDecorator< GUM_SCALAR >::get(), and gum::Instantiation::setVals().