<p>In <a href="https://github.com/mlpack/mlpack/pull/708#discussion_r71837556">src/mlpack/core/tree/vantage_point_tree/single_tree_traverser_impl.hpp</a>:</p>
<pre style='color:#555'>> +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())
</pre>
<p>If the reference node contains a point we have to calculate the base case.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/708/files/300882ac96e7a663e3e303ca0c45c14c6fafe1a6#r71837556">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFHcvPWLn9qGkD49ElbpUavhgRjphks5qYHJ1gaJpZM4I_COp">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJAKiS7uoxpKM9xkj4vfNs28bU_mks5qYHJ1gaJpZM4I_COp.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/708/files/300882ac96e7a663e3e303ca0c45c14c6fafe1a6#r71837556"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>