aGrUM  0.16.0
simpleBayesNetGenerator.h
Go to the documentation of this file.
1 
29 #ifndef GUM_SIMPLE_BAYES_NET_GENERATOR_H
30 #define GUM_SIMPLE_BAYES_NET_GENERATOR_H
31 
32 #include <climits>
33 #include <cstdio>
34 #include <cstdlib>
35 #include <iostream>
36 #include <vector>
37 
39 #include <agrum/agrum.h>
40 
41 namespace gum {
42 
57  template < typename GUM_SCALAR,
58  template < typename > class ICPTGenerator = SimpleCPTGenerator >
60  : public IBayesNetGenerator< GUM_SCALAR, ICPTGenerator > {
61  public:
62  // ############################################################################
64  // ############################################################################
66 
75 
79  ~SimpleBayesNetGenerator() override;
81 
82  // ############################################################################
84  // ############################################################################
86 
91  void generateBN(BayesNet< GUM_SCALAR >& bayesNet) override;
92 
94  }; /* class SimpleBayesNetGenerator */
95 
96 
97 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
98  extern template class SimpleBayesNetGenerator< double >;
99 #endif
100 
101 } /* namespace gum */
102 
104 
105 #endif /* GUM_SIMPLE_BAYES_NET_GENERATOR_H */
Class representing a Bayesian Network.
Definition: BayesNet.h:78
Class for generating bayesian networks.
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.
Definition: agrum.h:25
Size maxArcs() const
Return a constant reference to the maximum number of arcs imposed on the IBayesNetGenerator.
<agrum/BN/generator/simpleBayesNetGenerator.h>
void generateBN(BayesNet< GUM_SCALAR > &bayesNet) override
function that generates a bayesian networks.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:48
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
SimpleBayesNetGenerator(Size nbrNodes, Size maxArcs, Size maxModality=2)
Constructor.
Size maxModality() const
Return a constant reference to the maximum modality imposed on the IBayesNetGenerator.
~SimpleBayesNetGenerator() override
Destructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.