mlpack
Public Types | Static Public Member Functions | List of all members
mlpack::tree::RPlusTreeSplit< SplitPolicyType, SweepType > Class Template Reference

The RPlusTreeSplit class performs the split process of a node on overflow. More...

#include <r_plus_tree_split.hpp>

Public Types

typedef SplitPolicyType SplitPolicy
 

Static Public Member Functions

template<typename TreeType >
static void SplitLeafNode (TreeType *tree, std::vector< bool > &relevels)
 Split a leaf node using the "default" algorithm. More...
 
template<typename TreeType >
static bool SplitNonLeafNode (TreeType *tree, std::vector< bool > &relevels)
 Split a non-leaf node using the "default" algorithm. More...
 

Detailed Description

template<typename SplitPolicyType, template< typename > class SweepType>
class mlpack::tree::RPlusTreeSplit< SplitPolicyType, SweepType >

The RPlusTreeSplit class performs the split process of a node on overflow.

Template Parameters
SplitPolicyTypeThe class that helps to determine the subtree into which we should insert a child node.
SweepTypeThe class that finds the partition of a node along a given axis. The partition algorithm tries to find a partition along each axis, evaluates each partition and chooses the best one.

Member Function Documentation

◆ SplitLeafNode()

template<typename SplitPolicyType , template< typename > class SweepType>
template<typename TreeType >
void mlpack::tree::RPlusTreeSplit< SplitPolicyType, SweepType >::SplitLeafNode ( TreeType *  tree,
std::vector< bool > &  relevels 
)
static

Split a leaf node using the "default" algorithm.

If necessary, this split will propagate upwards through the tree.

Parameters
treeThe node that is being split.
relevelsNot used.

◆ SplitNonLeafNode()

template<typename SplitPolicyType , template< typename > class SweepType>
template<typename TreeType >
bool mlpack::tree::RPlusTreeSplit< SplitPolicyType, SweepType >::SplitNonLeafNode ( TreeType *  tree,
std::vector< bool > &  relevels 
)
static

Split a non-leaf node using the "default" algorithm.

If this is a root node, the tree increases in depth.

Parameters
treeThe node that is being split.
relevelsNot used.

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