mlpack 3.4.2
midpoint_space_split.hpp
Go to the documentation of this file.
1
13#ifndef MLPACK_CORE_TREE_SPILL_TREE_MIDPOINT_SPACE_SPLIT_HPP
14#define MLPACK_CORE_TREE_SPILL_TREE_MIDPOINT_SPACE_SPLIT_HPP
15
16#include <mlpack/prereqs.hpp>
17#include "hyperplane.hpp"
18
19namespace mlpack {
20namespace tree {
21
22template<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 "midpoint_space_split_impl.hpp"
49
50#endif
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 midpoint of the values in a certain projection.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.