<p>In <a href="https://github.com/mlpack/mlpack/pull/699#discussion_r69029630">src/mlpack/core/tree/rectangle_tree/minimal_coverage_sweep_impl.hpp</a>:</p>
<pre style='color:#555'>> + if (node->Dataset().col(node->Point(sorted[i].n))[k] > highBound2[k])
> + highBound2[k] = node->Dataset().col(node->Point(sorted[i].n))[k];
> + }
> + }
> +
> + // Evaluate the cost of the split i.e. calculate the total coverage
> + // of two resulting nodes.
> +
> + ElemType area1 = 1.0, area2 = 1.0;
> + ElemType overlappedArea = 1.0;
> +
> + for (size_t k = 0; k < node->Bound().Dim(); k++)
> + {
> + area1 *= highBound1[k] - lowerBound1[k];
> + area2 *= highBound2[k] - lowerBound2[k];
> + }
</pre>
<p>Ah, I forgot about <code>operator|=()</code>. <br>
<code>overlappedArea</code> is equal to 0. This variable is not needed here.</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/699/files/e165d759f9ae612b9965f70fbbf8abdb19dc8d07#r69029630">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFOZHz_Ds5FIn__0aQYGEEI5bPr0Hks5qQuCWgaJpZM4I3ATw">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFN5JXw23527kfNs_VSYTGwcmYW6oks5qQuCWgaJpZM4I3ATw.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/699/files/e165d759f9ae612b9965f70fbbf8abdb19dc8d07#r69029630"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>