aGrUM  0.13.2
simpleBayesNetGenerator.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Christophe GONZALES and Pierre-Henri WUILLEMIN *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
26 #ifndef GUM_SIMPLE_BAYES_NET_GENERATOR_H
27 #define GUM_SIMPLE_BAYES_NET_GENERATOR_H
28 
29 #include <climits>
30 #include <cstdio>
31 #include <cstdlib>
32 #include <iostream>
33 #include <vector>
34 
36 #include <agrum/agrum.h>
37 
38 namespace gum {
39 
54  template < typename GUM_SCALAR,
55  template < typename > class ICPTGenerator = SimpleCPTGenerator >
57  : public IBayesNetGenerator< GUM_SCALAR, ICPTGenerator > {
58  public:
59  // ############################################################################
61  // ############################################################################
63 
72 
76  ~SimpleBayesNetGenerator() override;
78 
79  // ############################################################################
81  // ############################################################################
83 
88  void generateBN(BayesNet< GUM_SCALAR >& bayesNet) override;
89 
91  }; /* class SimpleBayesNetGenerator */
92 
93 
94  extern template class SimpleBayesNetGenerator< float >;
95  extern template class SimpleBayesNetGenerator< double >;
96 
97 
98 } /* namespace gum */
99 
101 
102 #endif /* GUM_SIMPLE_BAYES_NET_GENERATOR_H */
Class representing a Bayesian Network.
Definition: BayesNet.h:76
unsigned long Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:50
Size maxModality() const
Return a constant reference to the maximum modality imposed on the IBayesNetGenerator.
Class for generating bayesian networks.
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
Size nbrNodes() const
Return a constant reference to the number of nodes imposed on the IBayesNetGenerator.
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.
Interface-like class for generating bayesian networks.
SimpleBayesNetGenerator(Size nbrNodes, Size maxArcs, Size maxModality=2)
Constructor.
~SimpleBayesNetGenerator() override
Destructor.
Source implementation of SimpleBayesNetGenerator.