35 # define MCBG MCBayesNetGenerator 37 # define MCBG MCBayesNetGenerator< GUM_SCALAR, ICPTGenerator, ICPTDisturber > 42 template <
typename GUM_SCALAR,
56 MCBG(nbrNodes, maxArcs, maxModality, iteration, p, q) {
59 "maxParents must be at least equal to 1 to have a connexe graph");
65 template <
typename GUM_SCALAR,
77 MCBG(bayesNet, iteration, p, q) {
83 template <
typename GUM_SCALAR,
94 template <
typename GUM_SCALAR,
101 for (
auto node : this->
_bayesNet.nodes())
104 return MCBG::__checkConditions();
107 template <
typename GUM_SCALAR,
111 class ICPTDisturber >
117 template <
typename GUM_SCALAR,
121 class ICPTDisturber >
127 "maxParents must be at least equal to 1 to have a connexe graph");
Class representing a Bayesian Network.
<agrum/BN/generator/SimpleMCayesNetGenerator.h>
Idx q() const
Return a constant reference to the probabilité imposed on the Markov Chain BayesNetGenerator.
void setMaxParents(Size maxParents)
Modifies the value of the number of maximum parents imposed on the BayesNetGenerator.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
BayesNet< GUM_SCALAR > _bayesNet
bool __checkConditions() final
function to holding the the specification wanted for the Bayesian markov.
~MaxParentsMCBayesNetGenerator() final
Destructor.
MaxParentsMCBayesNetGenerator(Size nbrNodes, Size maxArcs, Size maxModality=2, Size maxParents=1, Idx iteration=5000, Idx p=30, Idx q=40)
Constructor.
Size maxParents() const
Return a constant reference to the number of maximum parents imposed on the Markov Chain BayesNetGene...
Size Idx
Type for indexes.
Size iteration() const
Return a constant reference to the number of iteration imposed on the Markov Chain BayesNetGenerator...
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Idx p() const
Return a constant reference to the probabilité p imposed on the Markov Chain BayesNetGenerator.
#define GUM_ERROR(type, msg)