MLPACK  1.0.10
tree_traits.hpp
Go to the documentation of this file.
1 
24 #ifndef __MLPACK_CORE_TREE_TREE_TRAITS_HPP
25 #define __MLPACK_CORE_TREE_TREE_TRAITS_HPP
26 
27 namespace mlpack {
28 namespace tree {
29 
87 template<typename TreeType>
89 {
90  public:
95  static const bool HasOverlappingChildren = true;
96 
100  static const bool FirstPointIsCentroid = false;
101 
106  static const bool HasSelfChildren = false;
107 
111  static const bool RearrangesDataset = false;
112 };
113 
114 }; // namespace tree
115 }; // namespace mlpack
116 
117 #endif
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:95
static const bool FirstPointIsCentroid
This is true if Point(0) is the centroid of the node.
The TreeTraits class provides compile-time information on the characteristics of a given tree type...
Definition: tree_traits.hpp:88
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...