<p>In <a href="https://github.com/mlpack/mlpack/pull/708#discussion_r71805186">src/mlpack/core/tree/vantage_point_tree/vantage_point_split.hpp</a>:</p>
<pre style='color:#555'>&gt; +   *    after the rearrangement.
&gt; +   * @param oldFromNew Vector which will be filled with the old positions for
&gt; +   *    each new point.
&gt; +   */
&gt; +  static bool SplitNode(const BoundType&amp; bound,
&gt; +                        MatType&amp; data,
&gt; +                        const size_t begin,
&gt; +                        const size_t count,
&gt; +                        size_t&amp; splitCol,
&gt; +                        std::vector&lt;size_t&gt;&amp; oldFromNew);
&gt; + private:
&gt; +  /**
&gt; +   * The maximum number of samples used for vantage point estimation and for
&gt; +   * estimation of the median.
&gt; +   */
&gt; +  static const size_t maxNumSamples = 100;
</pre>
<p>It might make sense to have this be a template parameter defaulting to 100, but I don't have a strong opinion either way.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<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#r71805186">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFO6C-pieDftbL9q__jiDVwEY3gr7ks5qX_-CgaJpZM4I_COp">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFE7xK5UD5YrBse1Rcv3sm3tV7WUaks5qX_-CgaJpZM4I_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#r71805186"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>