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

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Feb 26 18:03:17 EST 2013


Author: rcurtin
Date: 2013-02-26 18:03:17 -0500 (Tue, 26 Feb 2013)
New Revision: 14401

Modified:
   mlpack/trunk/src/mlpack/core/tree/mrkd_statistic_impl.hpp
Log:
Style changes


Modified: mlpack/trunk/src/mlpack/core/tree/mrkd_statistic_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/mrkd_statistic_impl.hpp	2013-02-26 22:54:07 UTC (rev 14400)
+++ mlpack/trunk/src/mlpack/core/tree/mrkd_statistic_impl.hpp	2013-02-26 23:03:17 UTC (rev 14401)
@@ -21,9 +21,7 @@
  * @param count Number of points held in this leaf.
  */
 template<typename MatType>
-MRKDStatistic::MRKDStatistic(const MatType& dataset,
-                             const size_t begin,
-                             const size_t count) :
+MRKDStatistic::MRKDStatistic(const TreeType& node) :
     dataset(&dataset),
     begin(begin),
     count(count),
@@ -32,11 +30,11 @@
     parentStat(NULL)
 {
   centerOfMass = dataset.col(begin);
-  for (size_t i = begin+1; i < begin+count; ++i)
+  for (size_t i = begin + 1; i < begin + count; ++i)
     centerOfMass += dataset.col(i);
 
   sumOfSquaredNorms = 0.0;
-  for (size_t i = begin; i < begin+count; ++i)
+  for (size_t i = begin; i < begin + count; ++i)
     sumOfSquaredNorms += arma::norm(dataset.col(i), 2);
 }
 




More information about the mlpack-svn mailing list