mlpack
|
When descending a RectangleTree to insert a point, we need to have a way to choose a child node when the point isn't enclosed by any of them. More...
#include <r_star_tree_descent_heuristic.hpp>
Static Public Member Functions | |
template<typename TreeType > | |
static size_t | ChooseDescentNode (const TreeType *node, const size_t point) |
Evaluate the node using a heuristic. More... | |
template<typename TreeType > | |
static size_t | ChooseDescentNode (const TreeType *node, const TreeType *insertedNode) |
We simplify this to the same code as is used in the regular R tree, since the inserted node should always be above the leaf level. More... | |
When descending a RectangleTree to insert a point, we need to have a way to choose a child node when the point isn't enclosed by any of them.
This heuristic is used to do so using the rules for the R* tree.
|
inlinestatic |
Evaluate the node using a heuristic.
The heuristic guarantees two things:
node | The node that is being evaluated. |
point | The index of the point that is being inserted. |
|
inlinestatic |
We simplify this to the same code as is used in the regular R tree, since the inserted node should always be above the leaf level.
If the tree is eventually changed to support rectangles, this could be changed to match the above code; however, the paper's explanation for their algorithm seems to indicate the above is more for points than for rectangles.