[mlpack-git] [mlpack/mlpack] Vantage point tree (#708)
lozhnikov
notifications at github.com
Fri Jul 22 03:34:13 EDT 2016
> +SingleTreeTraverser<RuleType>::Traverse(
> + const size_t queryIndex,
> + VantagePointTree<MetricType, StatisticType, MatType, BoundType, SplitType>&
> + referenceNode)
> +{
> + // If we are a leaf, run the base case as necessary.
> + if (referenceNode.IsLeaf())
> + {
> + const size_t refEnd = referenceNode.Begin() + referenceNode.Count();
> + for (size_t i = referenceNode.Begin(); i < refEnd; ++i)
> + rule.BaseCase(queryIndex, i);
> + return;
> + }
> +
> + // If the reference node contains a point we should calculate the base case.
> + if (referenceNode.IsFirstPointCentroid())
If the reference node contains a point we have to calculate the base case.
---
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#r71837556
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160722/73be1c86/attachment.html>
More information about the mlpack-git
mailing list