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... | |
Definition at line 23 of file space_split.hpp.
|
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.
bound | The bound used for this node. |
data | The dataset used by the tree. |
points | Vector of indexes of points to be considered. |
projVector | Resulting axis-parallel projection vector. |
midValue | Mid value in the chosen projection. |
|
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).
bound | The bound used for this node. |
data | The dataset used by the tree. |
points | Vector of indexes of points to be considered. |
projVector | Resulting projection vector. |
midValue | Mid value in the chosen projection. |