mlpack  2.0.1
Public Member Functions | Public Attributes | List of all members
mlpack::tree::RectangleTree< MetricType, StatisticType, MatType, SplitType, DescentType >::SplitHistoryStruct Struct Reference

The X tree requires that the tree records it's "split history". More...

Public Member Functions

 SplitHistoryStruct (int dim)
 
template<typename Archive >
void Serialize (Archive &ar, const unsigned int)
 

Public Attributes

std::vector< bool > history
 
int lastDimension
 

Detailed Description

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename SplitType = RTreeSplit, typename DescentType = RTreeDescentHeuristic>
struct mlpack::tree::RectangleTree< MetricType, StatisticType, MatType, SplitType, DescentType >::SplitHistoryStruct

The X tree requires that the tree records it's "split history".

To make this easy, we use the following structure.

Definition at line 61 of file rectangle_tree.hpp.

Constructor & Destructor Documentation

◆ SplitHistoryStruct()

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename SplitType = RTreeSplit, typename DescentType = RTreeDescentHeuristic>
mlpack::tree::RectangleTree< MetricType, StatisticType, MatType, SplitType, DescentType >::SplitHistoryStruct::SplitHistoryStruct ( int  dim)
inline

Member Function Documentation

◆ Serialize()

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename SplitType = RTreeSplit, typename DescentType = RTreeDescentHeuristic>
template<typename Archive >
void mlpack::tree::RectangleTree< MetricType, StatisticType, MatType, SplitType, DescentType >::SplitHistoryStruct::Serialize ( Archive &  ar,
const unsigned  int 
)
inline

Member Data Documentation

◆ history

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename SplitType = RTreeSplit, typename DescentType = RTreeDescentHeuristic>
std::vector<bool> mlpack::tree::RectangleTree< MetricType, StatisticType, MatType, SplitType, DescentType >::SplitHistoryStruct::history

Definition at line 64 of file rectangle_tree.hpp.

◆ lastDimension

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename SplitType = RTreeSplit, typename DescentType = RTreeDescentHeuristic>
int mlpack::tree::RectangleTree< MetricType, StatisticType, MatType, SplitType, DescentType >::SplitHistoryStruct::lastDimension

Definition at line 63 of file rectangle_tree.hpp.


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