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

lozhnikov notifications at github.com
Tue Jun 21 17:35:34 EDT 2016


> +  const arma::Col<HilbertElemType>* ValueToInsert() const
> +  { return valueToInsert; }
> +
> + private:
> +  //! The number of bits that we can store
> +  static constexpr size_t order = sizeof(HilbertElemType) * CHAR_BIT;
> +  //! The local dataset
> +  arma::Mat<HilbertElemType>* localDataset;
> +  //! Indicates that the node owns the local dataset
> +  bool ownsLocalDataset;
> +  //! The number of values in the local dataset
> +  size_t numValues;
> +  //! The Hilbert value of the point that is being inserted
> +  arma::Col<HilbertElemType>* valueToInsert;
> +  //! Indicates that the node owns the valueToInsert 
> +  bool ownsValueToInsert;

`valueToInsert` should be the same for all nodes. I use this variable in order to avoid multiple computations of the Hilbert value of a point that is being inserted. Since all points can be inserted only at the root level I compute the Hilbert value in `HandlePointInsertion` if the parent of the node is NULL.

---
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#r67956430
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160621/4096e5d3/attachment-0001.html>


More information about the mlpack-git mailing list