38 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
45 if (maxArcs < nbrNodes - 1 || maxArcs > (nbrNodes * (nbrNodes - 1)) / 2)
50 " maxModality must be at least equal to two ");
57 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
63 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
70 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
76 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
81 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
86 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
91 " maxModality must be at least equal to two ");
95 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
98 if ((
_maxArcs < nbrNodes - 1) || (
_maxArcs > (nbrNodes * (nbrNodes - 1)) / 2))
104 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
void fillCPT()
function that insert random values in the CPT of each nodes according to the CPTGenerator.
Class for generating bayesian networks.
IBayesNetGenerator(Size nbrNodes, Size maxArcs, Size maxModality)
constructor.
void setNbrNodes(Size nbrNodes)
Modifies the value of the number of nodes imposed on the BayesGenerator.
Size nbrNodes() const
Return a constant reference to the number of nodes imposed on the IBayesNetGenerator.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void setMaxArcs(Size maxArcs)
Modifies the value of the number of nodes imposed on the BayesGenerator.
BayesNet< GUM_SCALAR > _bayesNet
Size maxArcs() const
Return a constant reference to the maximum number of arcs imposed on the IBayesNetGenerator.
virtual ~IBayesNetGenerator()
Destructor.
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.
Size maxModality() const
Return a constant reference to the maximum modality imposed on the IBayesNetGenerator.
#define GUM_ERROR(type, msg)
void setMaxModality(Size maxModality)
Modifies the value of the number of nodes imposed on the BayesGenerator.