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

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Feb 22 16:08:35 EST 2012


Author: jcline3
Date: 2012-02-22 16:08:35 -0500 (Wed, 22 Feb 2012)
New Revision: 11582

Modified:
   mlpack/trunk/src/mlpack/core/tree/mrkd_statistic.hpp
Log:
Appears to work now.


Modified: mlpack/trunk/src/mlpack/core/tree/mrkd_statistic.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/mrkd_statistic.hpp	2012-02-22 20:27:30 UTC (rev 11581)
+++ mlpack/trunk/src/mlpack/core/tree/mrkd_statistic.hpp	2012-02-22 21:08:35 UTC (rev 11582)
@@ -43,7 +43,7 @@
       begin(begin),
       count(count)
     {
-      centerOfMass = dataset[begin];
+      centerOfMass = dataset.row(begin);
       for(size_t i = begin+1; i < begin+count; ++i)
         centerOfMass += dataset.row(i);
       centerOfMass /= count;
@@ -96,7 +96,7 @@
 
     // Computed statistics
     //! The center of mass for this dataset
-    arma::vec centerOfMass;
+    arma::rowvec centerOfMass;
     //! The sum of the squared Euclidian norms for this dataset
     double sumOfSquaredNorms;
 };




More information about the mlpack-svn mailing list