35 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
42 if (maxArcs < nbrNodes - 1 || maxArcs > (nbrNodes * (nbrNodes - 1)) / 2)
47 " maxModality must be at least equal to two ");
54 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
60 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
67 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
73 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
78 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
83 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
88 " maxModality must be at least equal to two ");
92 template <
typename GUM_SCALAR,
template <
typename >
class ICPTGenerator >
95 if ((
_maxArcs < nbrNodes - 1) || (
_maxArcs > (nbrNodes * (nbrNodes - 1)) / 2))
101 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.
gum is the global namespace for all aGrUM entities
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.
Interface-like class for generating bayesian networks.
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.