<p>In <a href="https://github.com/mlpack/mlpack/pull/708#discussion_r71838603">src/mlpack/core/tree/vantage_point_tree/vantage_point_split.hpp</a>:</p>
<pre style='color:#555'>> + */
> + static void SelectVantagePoint(const BoundType& bound, const MatType& data,
> + const size_t begin, const size_t count, size_t& vantagePoint, ElemType& mu);
> +
> + /**
> + * Find no more then max(numSamples, upperBound) random samples i.e.
> + * random points that belong to the node. Each sample belongs to
> + * the interval [begin, begin + upperBound)
> + *
> + * @param distinctSamples The vector of samples indices.
> + * @param numSamples Maximum number of samples.
> + * @param begin The least index.
> + * @param upperBound The upper bound of indices.
> + */
> + static void GetDistinctSamples(arma::uvec& distinctSamples,
> + const size_t numSamples, const size_t begin, const size_t upperBound);
</pre>
<p>I agree, that will be better. Moreover, the random projection tree uses the same function.</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#r71838603">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFJUnRJwgSq6sAt0Fjsm-6jM72l6zks5qYHR2gaJpZM4I_COp">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFM3O8ZaA-QTgoRI9_aW_u-Bjdc0-ks5qYHR2gaJpZM4I_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#r71838603"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>