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

◆ GetProjVector() [1/2]

static bool 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.

◆ GetProjVector() [2/2]

static bool 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:
  • /home/ryan/src/mlpack.org/_src/mlpack-git/src/mlpack/core/tree/space_split/space_split.hpp