<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r71074652">src/mlpack/core/data/imputation_methods/median_imputation.hpp</a>:</p>
<pre style='color:#555'>&gt; +  }
&gt; +
&gt; +  /**
&gt; +   * Impute function searches through the input looking for mappedValue and
&gt; +   * replaces it with the median of the given dimension. The result is
&gt; +   * overwritten to the input matrix.
&gt; +   *
&gt; +   * @param input Matrix that contains mappedValue.
&gt; +   * @param mappedValue Value that the user wants to get rid of.
&gt; +   * @param dimension Index of the dimension of the mappedValue.
&gt; +   * @param columnMajor State of whether the input matrix is columnMajor or not.
&gt; +   */
&gt; +  void Impute(arma::Mat&lt;T&gt;&amp; input,
&gt; +              const T&amp; mappedValue,
&gt; +              const size_t dimension,
&gt; +              const bool columnMajor = true)
</pre>
<blockquote>
<p>maybe this method could be static</p>
</blockquote>

<p>I think non static function is better for this case, because we can store the state of imputation in the class if we need to.</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/694/files/e5d591e511ae449eae1523a80346357b93b968d1#r71074652">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFEemsUkqjdtzCrJqUKboIMk4R3M3ks5qWY6dgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBeponE3yX-jRTwaVFpTxXe54COQks5qWY6dgaJpZM4I07W-.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/694/files/e5d591e511ae449eae1523a80346357b93b968d1#r71074652"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>