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

Ryan Curtin notifications at github.com
Thu Jun 2 20:22:14 EDT 2016


> +   * @param val The Hilbert value to compare with.
> +   */
> +  template<typename TreeType>
> +  int CompareWith(TreeType *tree, DiscreteHilbertValue &val);
> +
> +  /**
> +   * Compare the largest Hilbert value of the node with the Hilbert value
> +   * of the point. It returns 1 if the value of the node is greater than
> +   * the value of the point, -1 if the value of the node is less than
> +   * the value of the point and 0 if the values are equal.
> +   * This method computes the Hilbert value of the point.
> +   * @param tree Not used
> +   * @param val The point to compare with.
> +   */
> +  template<typename TreeType,typename ElemType>
> +  int CompareWith(TreeType *tree, const arma::Col<ElemType> &pt);

I think all the overloads of `CompareWith()` can be marked `const`.

---
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/ab890dff6b4b617b5309af53950c6cac97d994d6#r65641033
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160602/3cc83fe1/attachment.html>


More information about the mlpack-git mailing list