mlpack  2.0.1
tree_traits.hpp
Go to the documentation of this file.
1 
16 #ifndef __MLPACK_CORE_TREE_TREE_TRAITS_HPP
17 #define __MLPACK_CORE_TREE_TREE_TRAITS_HPP
18 
19 namespace mlpack {
20 namespace tree {
21 
78 template<typename TreeType>
80 {
81  public:
86  static const bool HasOverlappingChildren = true;
87 
91  static const bool FirstPointIsCentroid = false;
92 
97  static const bool HasSelfChildren = false;
98 
102  static const bool RearrangesDataset = false;
103 
107  static const bool BinaryTree = false;
108 };
109 
110 } // namespace tree
111 } // namespace mlpack
112 
113 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
static const bool RearrangesDataset
This is true if the tree rearranges points in the dataset when it is built.
static const bool HasOverlappingChildren
This is true if the subspaces represented by the children of a node can overlap.
Definition: tree_traits.hpp:86
static const bool FirstPointIsCentroid
This is true if Point(0) is the centroid of the node.
Definition: tree_traits.hpp:91
The TreeTraits class provides compile-time information on the characteristics of a given tree type...
Definition: tree_traits.hpp:79
static const bool BinaryTree
This is true if the tree always has only two children.
static const bool HasSelfChildren
This is true if the points contained in the first child of a node (Child(0)) are also contained in th...
Definition: tree_traits.hpp:97