[mlpack-git] [mlpack/mlpack] Hilbert R tree (#664)

Ryan Curtin notifications at github.com
Tue Jun 21 11:35:04 EDT 2016


> + * Defintion of the HilbertRTreeSplit class, a class that splits the nodes of an R
> + * tree, starting at a leaf node and moving upwards if necessary.
> + */
> +#ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_SPLIT_HPP
> +#define MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_SPLIT_HPP
> +
> +#include <mlpack/core.hpp>
> +
> +namespace mlpack {
> +namespace tree /** Trees and tree-building procedures. */ {
> +
> +/**
> + * The order of the splitting policy. The Hilbert R tree splits a node
> + * on overflow, turnung splitOrder node to (splitOrder+1) nodes.
> + */
> +constexpr int splitOrder = 2;

I don't know if it's good to just leave `splitOrder` open in the `mlpack::tree` namespace, maybe we should put it inside `HilbertRTreeSplit` as a static member---or alternately make it a template parameter.  Whatever you want to do is up to you, I'd just like to get it out of `mlpack::tree` since there is a lot of other stuff in that namespace too.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/664/files/f9127cea62d5ce1ad8d5f59931de108a2f7cdd9b#r67892689
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160621/8b20b083/attachment.html>


More information about the mlpack-git mailing list