<p>This is a simple implementation of binarize function which transforms values in matrix to 0 or 1 according to the threshold.<br>
Yes, you can use <code>umat A = (B &gt; C)</code> but this function has a overload that applies binarize to only one dimension.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>&nbsp;&nbsp;<a href='https://github.com/mlpack/mlpack/pull/666'>https://github.com/mlpack/mlpack/pull/666</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>add Binarize + test</li>
  <li>Merge pull request #2 from mlpack/master</li>
  <li>Merge branch &#39;master&#39; of github.com:keonkim/mlpack into binarize</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/666/files#diff-0">src/mlpack/core/data/CMakeLists.txt</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/mlpack/mlpack/pull/666/files#diff-1">src/mlpack/core/data/binarize.hpp</a>
    (76)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/666/files#diff-2">src/mlpack/tests/CMakeLists.txt</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/mlpack/mlpack/pull/666/files#diff-3">src/mlpack/tests/binarize_test.cpp</a>
    (78)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/mlpack/mlpack/pull/666.patch'>https://github.com/mlpack/mlpack/pull/666.patch</a></li>
  <li><a href='https://github.com/mlpack/mlpack/pull/666.diff'>https://github.com/mlpack/mlpack/pull/666.diff</a></li>
</ul>

<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/666">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFPZeNB2iv-GIwsqzdTYPXI1FuAsJks5qHw2LgaJpZM4IsxhK">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFG7KNbAO7gZhyDOX44aXHouK7gMXks5qHw2LgaJpZM4IsxhK.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/666"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>