mean_space_split.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_CORE_TREE_SPILL_TREE_MEAN_SPACE_SPLIT_HPP
14 #define MLPACK_CORE_TREE_SPILL_TREE_MEAN_SPACE_SPLIT_HPP
15 
16 #include <mlpack/prereqs.hpp>
17 #include "hyperplane.hpp"
18 
19 namespace mlpack {
20 namespace tree {
21 
22 template<typename MetricType, typename MatType>
24 {
25  public:
36  template<typename HyperplaneType>
37  static bool SplitSpace(
38  const typename HyperplaneType::BoundType& bound,
39  const MatType& data,
40  const arma::Col<size_t>& points,
41  HyperplaneType& hyp);
42 };
43 
44 } // namespace tree
45 } // namespace mlpack
46 
47 // Include implementation.
48 #include "mean_space_split_impl.hpp"
49 
50 #endif
.hpp
Definition: add_to_po.hpp:21
The core includes that mlpack expects; standard C++ includes and Armadillo.
static bool SplitSpace(const typename HyperplaneType::BoundType &bound, const MatType &data, const arma::Col< size_t > &points, HyperplaneType &hyp)
Create a splitting hyperplane considering the mean of the values in a certain projection.