mlpack  master
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlpack::tree::Octree< MetricType, StatisticType, MatType >::SplitInfo Struct Reference

This is used for sorting points while splitting. More...

Public Member Functions

 SplitInfo (const size_t d, const arma::vec &c)
 Create the SplitInfo object. More...
 

Static Public Member Functions

template<typename VecType >
static bool AssignToLeftNode (const VecType &point, const SplitInfo &s)
 

Public Attributes

const arma::vec & center
 The center of the node. More...
 
size_t d
 The dimension we are splitting on. More...
 

Detailed Description

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat>
struct mlpack::tree::Octree< MetricType, StatisticType, MatType >::SplitInfo

This is used for sorting points while splitting.

Definition at line 431 of file octree.hpp.

Constructor & Destructor Documentation

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat>
mlpack::tree::Octree< MetricType, StatisticType, MatType >::SplitInfo::SplitInfo ( const size_t  d,
const arma::vec &  c 
)
inline

Create the SplitInfo object.

Definition at line 434 of file octree.hpp.

Member Function Documentation

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat>
template<typename VecType >
static bool mlpack::tree::Octree< MetricType, StatisticType, MatType >::SplitInfo::AssignToLeftNode ( const VecType &  point,
const SplitInfo s 
)
inlinestatic

Member Data Documentation

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat>
const arma::vec& mlpack::tree::Octree< MetricType, StatisticType, MatType >::SplitInfo::center

The center of the node.

Definition at line 439 of file octree.hpp.

Referenced by mlpack::tree::Octree< MetricType, StatisticType, MatType >::SplitInfo::AssignToLeftNode().

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat>
size_t mlpack::tree::Octree< MetricType, StatisticType, MatType >::SplitInfo::d

The dimension we are splitting on.

Definition at line 437 of file octree.hpp.

Referenced by mlpack::tree::Octree< MetricType, StatisticType, MatType >::SplitInfo::AssignToLeftNode().


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