31 # define MCBG MCBayesNetGenerator 32 # define IBNG IBayesNetGenerator 34 # define MCBG MCBayesNetGenerator< GUM_SCALAR, ICPTGenerator, ICPTDisturber > 35 # define IBNG IBayesNetGenerator< GUM_SCALAR, ICPTGenerator > 39 template <
typename GUM_SCALAR,
44 INLINE MaxInducedWidthMCBayesNetGenerator<
54 MCBG(nbrNodes, maxArcs, maxModality, iteration, p, q) {
55 if (maxInducedWidth == 0)
57 "maxInducedWidth must be at least equal " 58 "to 1 to have a connexe graph");
64 template <
typename GUM_SCALAR,
77 MCBG(bayesNet, iteration, p, q) {
97 template <
typename GUM_SCALAR,
100 template <
typename >
101 class ICPTDisturber >
110 template <
typename GUM_SCALAR,
111 template <
typename >
113 template <
typename >
114 class ICPTDisturber >
120 for (
auto node : this->
_bayesNet.nodes())
121 __modalitiesMap.
insert(node, this->_bayesNet.variable(node).domainSize());
127 return MCBG::__checkConditions();
130 template <
typename GUM_SCALAR,
131 template <
typename >
133 template <
typename >
134 class ICPTDisturber >
142 template <
typename GUM_SCALAR,
143 template <
typename >
145 template <
typename >
146 class ICPTDisturber >
151 if (maxlog10InducedWidth == 0)
153 "maxInducedWidth must be at least equal " 154 "to 1 to have a connexe graph");
Class representing a Bayesian Network.
Idx q() const
Return a constant reference to the probabilité imposed on the Markov Chain BayesNetGenerator.
double maxLog10CliqueDomainSize()
returns the max of log10DomainSize of the cliques in the junction tree.
Class for generating bayesian networks using MC algorithm cf.
MaxInducedWidthMCBayesNetGenerator(Size nbrNodes, Size maxArcs, Size maxModality=2, Size maxInducedWidth=3, Idx iteration=5000, Idx p=30, Idx q=40)
Constructor.
gum is the global namespace for all aGrUM entities
The class for generic Hash Tables.
BayesNet< GUM_SCALAR > _bayesNet
void setMaxlog10InducedWidth(Size maxlog10InducedWidth)
Modifies the value of the number of maximum parents imposed on the BayesNetGenerator.
The default triangulation algorithm used by aGrUM.
Size maxlog10InducedWidth() 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.
value_type & insert(const Key &key, const Val &val)
Adds a new element (actually a copy of this element) into the hash table.
Idx p() const
Return a constant reference to the probabilité p imposed on the Markov Chain BayesNetGenerator.
maxInducedWidthMCBayesNetGenerator.h <agrum/BN/generator/SimpleMCayesNetGenerator.h>
Size _maxlog10InducedWidth
#define GUM_ERROR(type, msg)
~MaxInducedWidthMCBayesNetGenerator() final
Destructor.
bool __checkConditions() final
function to holding the the specification wanted for the Bayesian markov.