|
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...
|
|
template<typename MetricType, typename MatType>
class mlpack::tree::SpaceSplit< MetricType, MatType >
Definition at line 23 of file space_split.hpp.
template<typename MetricType , typename MatType >
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
-
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. |
- 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
-
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. |
- Returns
- Flag to determine if it is possible.
The documentation for this class was generated from the following file: