mlpack  master
Static Public Member Functions | List of all members
mlpack::tree::SpaceSplit< MetricType, MatType > Class Template Reference

Static Public Member Functions

static bool GetProjVector (const bound::HRectBound< MetricType > &bound, const MatType &data, const arma::Col< size_t > &points, AxisParallelProjVector &projVector, double &midValue)
 Create a projection vector based on the given set of point. More...
 
template<typename BoundType >
static bool GetProjVector (const BoundType &bound, const MatType &data, const arma::Col< size_t > &points, ProjVector &projVector, double &midValue)
 Create a projection vector based on the given set of point. More...
 

Detailed Description

template<typename MetricType, typename MatType>
class mlpack::tree::SpaceSplit< MetricType, MatType >

Definition at line 23 of file space_split.hpp.

Member Function Documentation

template<typename MetricType , typename MatType >
static bool mlpack::tree::SpaceSplit< MetricType, MatType >::GetProjVector ( const bound::HRectBound< MetricType > &  bound,
const MatType &  data,
const arma::Col< size_t > &  points,
AxisParallelProjVector projVector,
double &  midValue 
)
static

Create a projection vector based on the given set of point.

This special case will create an axis-parallel projection vector in the dimension that has the maximum width.

Parameters
boundThe bound used for this node.
dataThe dataset used by the tree.
pointsVector of indexes of points to be considered.
projVectorResulting axis-parallel projection vector.
midValueMid value in the chosen projection.
Returns
Flag to determine if it is possible.
template<typename MetricType , typename MatType >
template<typename BoundType >
static bool mlpack::tree::SpaceSplit< MetricType, MatType >::GetProjVector ( const BoundType &  bound,
const MatType &  data,
const arma::Col< size_t > &  points,
ProjVector projVector,
double &  midValue 
)
static

Create a projection vector based on the given set of point.

We efficiently estimate the farthest pair of points in the given set: p and q, and then consider the projection vector (q - p).

Parameters
boundThe bound used for this node.
dataThe dataset used by the tree.
pointsVector of indexes of points to be considered.
projVectorResulting projection vector.
midValueMid value in the chosen projection.
Returns
Flag to determine if it is possible.

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