MLPACK  1.0.8
traits.hpp
Go to the documentation of this file.
1 
23 #ifndef __MLPACK_CORE_TREE_COVER_TREE_TRAITS_HPP
24 #define __MLPACK_CORE_TREE_COVER_TREE_TRAITS_HPP
25 
27 
28 namespace mlpack {
29 namespace tree {
30 
37 template<typename MetricType,
38  typename RootPointPolicy,
39  typename StatisticType>
40 class TreeTraits<CoverTree<MetricType, RootPointPolicy, StatisticType> >
41 {
42  public:
48  static const bool HasParentDistance = true;
49 
54  static const bool HasOverlappingChildren = true;
55 
60  static const bool FirstPointIsCentroid = true;
61 
65  static const bool HasSelfChildren = true;
66 };
67 
68 }; // namespace tree
69 }; // namespace mlpack
70 
71 #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
A cover tree is a tree specifically designed to speed up nearest-neighbor computation in high-dimensi...
Definition: cover_tree.hpp:103
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...