is_spill_tree.hpp
Go to the documentation of this file.
1 
11 #ifndef MLPACK_CORE_TREE_SPILL_TREE_IS_SPILL_TREE_HPP
12 #define MLPACK_CORE_TREE_SPILL_TREE_IS_SPILL_TREE_HPP
13 
14 #include "spill_tree.hpp"
15 
16 namespace mlpack {
17 namespace tree {
18 
19 // Useful struct when specific behaviour for SpillTrees is required.
20 template<typename TreeType>
22 {
23  static const bool value = false;
24 };
25 
26 // Specialization for SpillTree.
27 template<typename MetricType,
28  typename StatisticType,
29  typename MatType,
30  template<typename HyperplaneMetricType>
31  class HyperplaneType,
32  template<typename SplitMetricType, typename SplitMatType>
33  class SplitType>
34 struct IsSpillTree<tree::SpillTree<MetricType, StatisticType, MatType,
35  HyperplaneType, SplitType>>
36 {
37  static const bool value = true;
38 };
39 
40 } // namespace tree
41 } // namespace mlpack
42 
43 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
static const bool value
A hybrid spill tree is a variant of binary space trees in which the children of a node can "spill ove...
Definition: spill_tree.hpp:73
Definition of generalized hybrid spill tree (SpillTree).