MLPACK  1.0.7
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 
86 template<typename TreeType>
88 {
89  public:
95  static const bool HasParentDistance = false;
96 
101  static const bool HasOverlappingChildren = true;
102 
106  static const bool FirstPointIsCentroid = false;
107 
112  static const bool HasSelfChildren = false;
113 };
114 
115 }; // namespace tree
116 }; // namespace mlpack
117 
118 #endif
static const bool HasOverlappingChildren
This is true if the subspaces represented by the children of a node can overlap.
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:87
static const bool HasParentDistance
This is true if TreeType::ParentDistance() exists and works.
Definition: tree_traits.hpp:95
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...