MLPACK  1.0.7
traits.hpp
Go to the documentation of this file.
1 
22 #ifndef __MLPACK_CORE_TREE_BINARY_SPACE_TREE_TRAITS_HPP
23 #define __MLPACK_CORE_TREE_BINARY_SPACE_TREE_TRAITS_HPP
24 
26 
27 namespace mlpack {
28 namespace tree {
29 
36 template<typename BoundType,
37  typename StatisticType,
38  typename MatType>
39 class TreeTraits<BinarySpaceTree<BoundType, StatisticType, MatType> >
40 {
41  public:
46  static const bool HasParentDistance = false;
47 
53  static const bool HasOverlappingChildren = false;
54 
58  static const bool FirstPointIsCentroid = false;
59 
63  static const bool HasSelfChildren = false;
64 };
65 
66 }; // namespace tree
67 }; // namespace mlpack
68 
69 #endif
A binary space partitioning tree, such as a KD-tree or a ball tree.
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...