aGrUM  0.16.0
multiDimFunctionGraphGenerator.h
Go to the documentation of this file.
1 
31 #ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_GENERATOR_H
32 #define GUM_MULTI_DIM_FUNCTION_GRAPH_GENERATOR_H
33 
34 #include <agrum/agrum.h>
36 
37 namespace gum {
54  public:
55  // =========================================================================
57  // =========================================================================
58 
60 
64  Idx maxVar, Idx minVar, const Sequence< const DiscreteVariable* >& varSeq);
65 
70 
72 
77 
78 
79  private:
83  bool __createLeaf(NodeId currentNodeId, HashTable< NodeId, Idx >& node2MinVar);
84 
88  Idx __generateVarPos(Idx offset, Idx span);
89 
92 
95 
97  static Idx __genSeed;
98  };
99 } // namespace gum
100 #endif /* GUM_MULTI_DIM_FUNCTION_GRAPH_GENERATOR_H */
Class implementing a function graph generator with template type double.
The generic class for storing (ordered) sequences of objects.
Definition: sequence.h:1022
static Idx __genSeed
The seed for random numbers.
MultiDimFunctionGraph< double > * generate()
Generates a MultiDimFunctionGraph.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Idx __nbTotalVar
The total number of variables.
bool __createLeaf(NodeId currentNodeId, HashTable< NodeId, Idx > &node2MinVar)
Creates a leaf.
const Sequence< const DiscreteVariable *> __varSeq
The variables.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
MultiDimFunctionGraphGenerator(Idx maxVar, Idx minVar, const Sequence< const DiscreteVariable * > &varSeq)
Default constructor.
Size Idx
Type for indexes.
Definition: types.h:53
Idx __generateVarPos(Idx offset, Idx span)
Generate a variable position.
Size NodeId
Type for node ids.
Definition: graphElements.h:98