[mlpack-svn] r14398 - mlpack/trunk/src/mlpack/methods/neighbor_search

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


Author: rcurtin
Date: 2013-02-26 17:42:42 -0500 (Tue, 26 Feb 2013)
New Revision: 14398

Modified:
   mlpack/trunk/src/mlpack/methods/neighbor_search/neighbor_search.hpp
Log:
Simplified statistic construction.


Modified: mlpack/trunk/src/mlpack/methods/neighbor_search/neighbor_search.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/neighbor_search/neighbor_search.hpp	2013-02-26 22:41:43 UTC (rev 14397)
+++ mlpack/trunk/src/mlpack/methods/neighbor_search/neighbor_search.hpp	2013-02-26 22:42:42 UTC (rev 14398)
@@ -41,23 +41,13 @@
   QueryStat() : bound(SortPolicy::WorstDistance()) { }
 
   /**
-   * Initialization for a leaf, required by the StatisticType policy.
+   * Initialization for a fully initialized node.  In this case, we don't need
+   * to worry about the node.
    */
-  template<typename MatType>
-  QueryStat(const MatType& /* dataset */, const size_t /* begin */, const size_t /* count */)
+  template<typename TreeType>
+  QueryStat(TreeType& /* node */)
       : bound(SortPolicy::WorstDistance()) { }
 
-  /**
-   * Initialization for a node, required by the StatisticType policy.
-   */
-  template<typename MatType>
-  QueryStat(const MatType& /* dataset */,
-            const size_t /* begin */,
-            const size_t /* count */,
-            const QueryStat& /* leftStat */,
-            const QueryStat& /* rightStat */)
-      : bound(SortPolicy::WorstDistance()) { }
-
   //! Get the bound.
   double Bound() const { return bound; }
   //! Modify the bound.




More information about the mlpack-svn mailing list