aGrUM  0.16.0
treeOperator.h
Go to the documentation of this file.
1 
31 #ifndef GUM_TREE_OPERATOR_H
32 #define GUM_TREE_OPERATOR_H
33 
34 #include <functional>
35 
38 
39 namespace gum {
40 
48  template < typename GUM_SCALAR,
49  template < typename >
50  class COMBINEOPERATOR,
51  template < typename > class TerminalNodePolicy =
52  ExactTerminalNodePolicy >
53  class TreeOperator {
54  public:
55  // ============================================================================
57  // ============================================================================
59 
66 
74 
78  ~TreeOperator();
79 
81  // ============================================================================
83  // ============================================================================
85 
89 
91 
92  private:
94  NodeId __xPloreDT1(NodeId currentNodeId);
95 
97  NodeId __xPloreDT2(NodeId currentNodeId);
98 
100 
104 
107 
109  const COMBINEOPERATOR< GUM_SCALAR > __combine;
110 
113  };
114 
115 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
116  extern template class TreeOperator< double, std::plus >;
117 #endif
118 
119 } // namespace gum
120 
122 
123 #endif // GUM_OPERATOR_H
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
NodeId __checkRedundancy(const DiscreteVariable *, NodeId *)
Base class for discrete random variable.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Class used to perform Decision Tree Operation in the FMDP Framework.
Definition: treeOperator.h:53
HashTable< const DiscreteVariable *, Idx > __context
Definition: treeOperator.h:111
NodeId __xPloreDT2(NodeId currentNodeId)
The main recursion function.
The class for generic Hash Tables.
Definition: hashTable.h:679
NodeId __xPloreDT1(NodeId currentNodeId)
The main recursion function.
const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * __dt1
The two function graphs used for the operation.
Definition: treeOperator.h:102
MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * compute()
Computes and builds the Function Graph that is the result of the operation.
Class implementingting a function graph.
const COMBINEOPERATOR< GUM_SCALAR > __combine
The function to be performed on the leaves.
Definition: treeOperator.h:109
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
~TreeOperator()
Default destructor.
MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * __rd
The resulting function graph.
Definition: treeOperator.h:106
TreeOperator(const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > *dt1, const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > *dt2)
Default constructor.
const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * __dt2
Definition: treeOperator.h:103
Size NodeId
Type for node ids.
Definition: graphElements.h:98