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

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Apr 27 16:58:59 EDT 2012


Author: rcurtin
Date: 2012-04-27 16:58:59 -0400 (Fri, 27 Apr 2012)
New Revision: 12556

Modified:
   mlpack/trunk/src/mlpack/core/tree/cover_tree_impl.hpp
Log:
Fix warnings I introduced.  Oops...


Modified: mlpack/trunk/src/mlpack/core/tree/cover_tree_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/cover_tree_impl.hpp	2012-04-27 20:20:52 UTC (rev 12555)
+++ mlpack/trunk/src/mlpack/core/tree/cover_tree_impl.hpp	2012-04-27 20:58:59 UTC (rev 12556)
@@ -18,8 +18,8 @@
 CoverTree<StatisticType>::CoverTree(const arma::mat& dataset,
                                     const double expansionConstant) :
     dataset(dataset),
-    expansionConstant(expansionConstant),
-    point(0)
+    point(0),
+    expansionConstant(expansionConstant)
 {
   // Kick off the building.  Create the indices array and the distances array.
   arma::Col<size_t> indices = arma::linspace<arma::Col<size_t> >(1,
@@ -132,9 +132,9 @@
                                     size_t& farSetSize,
                                     size_t& usedSetSize) :
     dataset(dataset),
-    expansionConstant(expansionConstant),
     point(pointIndex),
-    scale(scale)
+    scale(scale),
+    expansionConstant(expansionConstant)
 {
 //  Log::Debug << "Making child.  pointIndex " << pointIndex << ", scale " <<
 //      scale << ", nearSetSize " << nearSetSize << ", farSetSize " << farSetSize




More information about the mlpack-svn mailing list