[mlpack-svn] r13527 - mlpack/trunk/src/mlpack/core/tree

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Sep 11 12:36:29 EDT 2012


Author: rcurtin
Date: 2012-09-11 12:36:29 -0400 (Tue, 11 Sep 2012)
New Revision: 13527

Modified:
   mlpack/trunk/src/mlpack/core/tree/hrectbound_impl.hpp
Log:
Documentation fix, and tabs to spaces.


Modified: mlpack/trunk/src/mlpack/core/tree/hrectbound_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/hrectbound_impl.hpp	2012-09-11 04:00:12 UTC (rev 13526)
+++ mlpack/trunk/src/mlpack/core/tree/hrectbound_impl.hpp	2012-09-11 16:36:29 UTC (rev 13527)
@@ -153,8 +153,6 @@
 
 /**
  * Calculates minimum bound-to-bound squared distance.
- *
- * Example: bound1.MinDistanceSq(other) for minimum squared distance.
  */
 template<int t_pow>
 double HRectBound<t_pow>::MinDistance(const HRectBound& other) const
@@ -196,8 +194,8 @@
 
   for (size_t d = 0; d < dim; d++)
   {
-		double v = std::max(fabs(point[d] - bounds[d].Lo()),
-					       fabs(bounds[d].Hi() - point[d]));
+    double v = std::max(fabs(point[d] - bounds[d].Lo()),
+        fabs(bounds[d].Hi() - point[d]));
     sum += pow(v, (double) t_pow);
   }
 
@@ -217,8 +215,8 @@
   double v;
   for (size_t d = 0; d < dim; d++)
   {
-		v = std::max(fabs(other.bounds[d].Hi() - bounds[d].Lo()),
-					       fabs(bounds[d].Hi() - other.bounds[d].Lo()));
+    v = std::max(fabs(other.bounds[d].Hi() - bounds[d].Lo()),
+        fabs(bounds[d].Hi() - other.bounds[d].Lo()));
     sum += pow(v, (double) t_pow); // v is non-negative.
   }
 




More information about the mlpack-svn mailing list