[mlpack-git] [mlpack/mlpack] Vantage point tree (#708)

Ryan Curtin notifications at github.com
Thu Jul 21 19:24:08 EDT 2016


> +   */
> +  static const size_t maxNumSamples = 100;
> +
> +  template<typename StructElemType>
> +  struct SortStruct
> +  {
> +    size_t point;
> +    ElemType dist;
> +  };
> +
> +  template<typename StructElemType>
> +  static bool StructComp(const SortStruct<StructElemType>& s1,
> +      const SortStruct<StructElemType>& s2)
> +  {
> +    return (s1.dist < s2.dist);
> +  };

Should we use `std::pair<size_t, ElemType>` here too, like in the RectangleTree code?

---
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/708/files/300882ac96e7a663e3e303ca0c45c14c6fafe1a6#r71805226
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160721/c35f80dd/attachment.html>


More information about the mlpack-git mailing list