MidpointSpaceSplit< MetricType, MatType > Class Template Reference

Static Public Member Functions

template
<
typename
HyperplaneType
>
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. More...

 

Detailed Description


template
<
typename
MetricType
,
typename
MatType
>

class mlpack::tree::MidpointSpaceSplit< MetricType, MatType >

Definition at line 23 of file midpoint_space_split.hpp.

Member Function Documentation

◆ SplitSpace()

static bool SplitSpace ( const typename HyperplaneType::BoundType &  bound,
const MatType &  data,
const arma::Col< size_t > &  points,
HyperplaneType &  hyp 
)
static

Create a splitting hyperplane considering the midpoint of the values in a certain projection.

Parameters
boundThe bound used for this node.
dataThe dataset used by the tree.
pointsVector of indexes of points to be considered.
hypResulting splitting hyperplane.
Returns
Flag to determine if split is possible.

The documentation for this class was generated from the following file: