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

lozhnikov notifications at github.com
Fri Jul 22 03:52:34 EDT 2016


> + * Return the number of points contained in this node.
> + */
> +template<typename MetricType,
> +         typename StatisticType,
> +         typename MatType,
> +         template<typename BoundMetricType, typename...> class BoundType,
> +         template<typename SplitBoundType, typename SplitMatType>
> +             class SplitType>
> +inline size_t VantagePointTree<MetricType, StatisticType, MatType, BoundType,
> +                              SplitType>::NumPoints() const
> +{
> +  // Each intermediate node contains exactly one point.
> +  if (left && parent)
> +    return 1;
> +  else if(!parent)
> +	return 0;

Yeah, I'll fix the comment.

---
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#r71839866
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160722/ccffe314/attachment.html>


More information about the mlpack-git mailing list