mlpack
2.2.5
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
mlpack
core
tree
space_split
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
19
namespace
mlpack {
20
namespace
tree {
21
22
template
<
typename
MetricType,
typename
MatType>
23
class
MidpointSpaceSplit
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
prereqs.hpp
The core includes that mlpack expects; standard C++ includes and Armadillo.
mlpack::tree::MidpointSpaceSplit::SplitSpace
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...
hyperplane.hpp
mlpack::tree::MidpointSpaceSplit
Definition:
midpoint_space_split.hpp:23
Generated by
1.8.5