54#define MCBG MCBayesNetGenerator< GUM_SCALAR, ICPTGenerator, ICPTDisturber >
55#define IBNG IBayesNetGenerator< GUM_SCALAR, ICPTGenerator >
59 template < GUM_Numeric GUM_SCALAR,
60 template <
typename >
class ICPTGenerator,
61 template <
typename >
class ICPTDisturber >
71 if (maxInducedWidth == 0)
73 "maxInducedWidth must be at least equal "
74 "to 1 to have a connexe graph");
81 template <
typename >
class ICPTGenerator,
82 template <
typename >
class ICPTDisturber >
109 template <
typename >
class ICPTGenerator,
110 template <
typename >
class ICPTDisturber >
118 template <
typename >
class ICPTGenerator,
119 template <
typename >
class ICPTDisturber >
124 for (
auto node: this->
dag_.nodes())
125 _modalitiesMap_.
insert(node, 2);
128 const auto moralg = this->
dag_.moralGraph();
133 return MCBG::_checkConditions_();
137 template <
typename >
class ICPTGenerator,
138 template <
typename >
class ICPTDisturber >
145 template <
typename >
class ICPTGenerator,
146 template <
typename >
class ICPTDisturber >
151 "maxInducedWidth must be at least equal "
152 "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.
~MaxInducedWidthMCBayesNetGenerator() override
Destructor.
MaxInducedWidthMCBayesNetGenerator(Size nbrNodes, Size maxArcs, Size maxModality=2, Size maxInducedWidth=3, Idx iteration=NB_INIT_ITERATIONS, Idx p=30, Idx q=40)
Constructor.
Size maxlog10InducedWidth_
bool _checkConditions_() final
function to holding the specification wanted for the Bayesian network.
void setMaxlog10InducedWidth(Size maxlog10InducedWidth)
Modifies the value of the number of maximum parents imposed on the BayesNetGenerator.
Size maxlog10InducedWidth() const
Return a constant reference to the number of maximum parents imposed on the Markov Chain BayesNetGene...
Exception : operation not allowed.
double maxLog10CliqueDomainSize()
returns the max of log10DomainSize of the cliques in the junction tree.
Complete concept for GUM_SCALAR template parameter.
#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