[mlpack-svn] r16812 - mlpack/trunk/src/mlpack/core/tree
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Jul 10 10:46:08 EDT 2014
Author: rcurtin
Date: Thu Jul 10 10:46:08 2014
New Revision: 16812
Log:
Use slightly safer Width().
Modified:
mlpack/trunk/src/mlpack/core/tree/hrectbound_impl.hpp
Modified: mlpack/trunk/src/mlpack/core/tree/hrectbound_impl.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core/tree/hrectbound_impl.hpp (original)
+++ mlpack/trunk/src/mlpack/core/tree/hrectbound_impl.hpp Thu Jul 10 10:46:08 2014
@@ -343,7 +343,7 @@
for (size_t i = 0; i < dim; i++)
{
bounds[i] |= math::Range(mins[i], maxs[i]);
- const double width = bounds[i].Hi() - bounds[i].Lo();
+ const double width = bounds[i].Width();
if (width < minWidth)
minWidth = width;
}
@@ -364,7 +364,7 @@
for (size_t i = 0; i < dim; i++)
{
bounds[i] |= other.bounds[i];
- const double width = bounds[i].Hi() - bounds[i].Lo();
+ const double width = bounds[i].Width();
if (width < minWidth)
minWidth = width;
}
More information about the mlpack-svn
mailing list