![]() |
aGrUM
0.16.0
|
<agrum/BN/generator/simpleCPTGenerator.h> More...
#include <simpleCPTGenerator.h>
Inherits gum::ICPTGenerator< GUM_SCALAR >.
Public Member Functions | |
Constructors / Destructor | |
SimpleCPTGenerator () | |
Default constructor. More... | |
~SimpleCPTGenerator () override | |
Destructor. More... | |
CPT generation methods | |
void | generateCPT (const Idx &varId, const Potential< GUM_SCALAR > &cpt) override |
Generates a CPT using floats. More... | |
<agrum/BN/generator/simpleCPTGenerator.h>
Class for generating Conditional Probability Tables.
This class implements a CPTGenerator CPT generation algorithm.
Definition at line 46 of file simpleCPTGenerator.h.
INLINE gum::SimpleCPTGenerator< GUM_SCALAR >::SimpleCPTGenerator | ( | ) |
Default constructor.
Definition at line 37 of file simpleCPTGenerator_tpl.h.
|
override |
Destructor.
Definition at line 44 of file simpleCPTGenerator_tpl.h.
|
override |
Generates a CPT using floats.
varId | The variable id of the CPT owner. |
cpt | A reference on the CPT to fill. |
Definition at line 53 of file simpleCPTGenerator_tpl.h.
References gum::Instantiation::end(), gum::Instantiation::incNotVar(), gum::Instantiation::incVar(), gum::Potential< GUM_SCALAR >::random(), gum::MultiDimDecorator< GUM_SCALAR >::set(), gum::Instantiation::setFirstNotVar(), gum::Instantiation::setFirstVar(), gum::Instantiation::unsetEnd(), and gum::MultiDimDecorator< GUM_SCALAR >::variable().
Referenced by gum::BayesNet< double >::generateCPT().