aGrUM  0.17.2
a C++ library for (probabilistic) graphical models
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 {
55  public:
56  // =========================================================================
58  // =========================================================================
59 
61 
65  Idx maxVar, Idx minVar, const Sequence< const DiscreteVariable* >& varSeq);
66 
71 
73 
78 
79 
80  private:
84  bool __createLeaf(NodeId currentNodeId, HashTable< NodeId, Idx >& node2MinVar);
85 
89  Idx __generateVarPos(Idx offset, Idx span);
90 
93 
96 
98  static Idx __genSeed;
99  };
100 } // namespace gum
101 #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-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
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-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
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