53#define MCBG MCBayesNetGenerator< GUM_SCALAR, ICPTGenerator, ICPTDisturber >
54#define IBNG IBayesNetGenerator< GUM_SCALAR, ICPTGenerator >
58 template <
typename GUM_SCALAR,
59 template <
typename >
class ICPTGenerator,
60 template <
typename >
class ICPTDisturber >
70 if (maxInducedWidth == 0)
72 "maxInducedWidth must be at least equal "
73 "to 1 to have a connexe graph");
79 template <
typename GUM_SCALAR,
80 template <
typename >
class ICPTGenerator,
81 template <
typename >
class ICPTDisturber >
107 template <
typename GUM_SCALAR,
108 template <
typename >
class ICPTGenerator,
109 template <
typename >
class ICPTDisturber >
116 template <
typename GUM_SCALAR,
117 template <
typename >
class ICPTGenerator,
118 template <
typename >
class ICPTDisturber >
123 for (
auto node: this->
dag_.nodes())
124 _modalitiesMap_.
insert(node, 2);
127 const auto moralg = this->
dag_.moralGraph();
132 return MCBG::_checkConditions_();
135 template <
typename GUM_SCALAR,
136 template <
typename >
class ICPTGenerator,
137 template <
typename >
class ICPTDisturber >
143 template <
typename GUM_SCALAR,
144 template <
typename >
class ICPTGenerator,
145 template <
typename >
class ICPTDisturber >
150 "maxInducedWidth must be at least equal "
151 "to 1 to have a connexe graph");
The default triangulation algorithm used by aGrUM.
value_type & insert(const Key &key, const Val &val)
Adds a new element (actually a copy of this element) into the hash table.
Size maxlog10InducedWidth() const
Return a constant reference to the number of maximum parents imposed on the Markov Chain BayesNetGene...
~MaxInducedWidthMCBayesNetGenerator()
Destructor.
Size maxlog10InducedWidth_
void setMaxlog10InducedWidth(Size maxlog10InducedWidth)
Modifies the value of the number of maximum parents imposed on the BayesNetGenerator.
bool _checkConditions_() final
function to holding the the specification wanted for the Bayesian markov.
MaxInducedWidthMCBayesNetGenerator(Size nbrNodes, Size maxArcs, Size maxModality=2, Size maxInducedWidth=3, Idx iteration=NB_INIT_ITERATIONS, Idx p=30, Idx q=40)
Constructor.
Exception : operation not allowed.
double maxLog10CliqueDomainSize()
returns the max of log10DomainSize of the cliques in the junction tree.
#define GUM_ERROR(type, msg)
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size Idx
Type for indexes.
HashTable< NodeId, VAL > NodeProperty
Property on graph elements.
Class for generating Bayesian networks using MC algorithm cf.
gum is the global namespace for all aGrUM entities