mlpack
Public Member Functions | List of all members
mlpack::tree::ProjVector Class Reference

ProjVector defines a general projection vector (not necessarily axis-parallel). More...

#include <projection_vector.hpp>

Public Member Functions

 ProjVector ()
 Empty Constructor.
 
 ProjVector (const arma::vec &vect)
 Create the projection vector based on the specified vector. More...
 
template<typename VecType >
double Project (const VecType &point, typename std::enable_if_t< IsVector< VecType >::value > *=0) const
 Project the given point on the projection vector. More...
 
template<typename MetricType , typename VecType >
math::RangeType< typename VecType::elem_type > Project (const bound::BallBound< MetricType, VecType > &bound) const
 Project the given ball bound on the projection vector. More...
 
template<typename Archive >
void serialize (Archive &ar, const uint32_t)
 Serialization.
 

Detailed Description

ProjVector defines a general projection vector (not necessarily axis-parallel).

Constructor & Destructor Documentation

◆ ProjVector()

mlpack::tree::ProjVector::ProjVector ( const arma::vec &  vect)
inline

Create the projection vector based on the specified vector.

Parameters
vectVector to be considered.

Member Function Documentation

◆ Project() [1/2]

template<typename VecType >
double mlpack::tree::ProjVector::Project ( const VecType &  point,
typename std::enable_if_t< IsVector< VecType >::value > *  = 0 
) const
inline

Project the given point on the projection vector.

Parameters
pointPoint to be projected.

◆ Project() [2/2]

template<typename MetricType , typename VecType >
math::RangeType<typename VecType::elem_type> mlpack::tree::ProjVector::Project ( const bound::BallBound< MetricType, VecType > &  bound) const
inline

Project the given ball bound on the projection vector.

Parameters
boundBound to be projected.
Returns
Range of projected values.

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