[mlpack-svn] r13403 - mlpack/trunk/src/mlpack/core/tree/cover_tree

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Aug 15 13:35:07 EDT 2012


Author: rcurtin
Date: 2012-08-15 13:35:07 -0400 (Wed, 15 Aug 2012)
New Revision: 13403

Modified:
   mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp
Log:
Must used square rooted distance to be a valid metric.


Modified: mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp	2012-08-15 17:29:36 UTC (rev 13402)
+++ mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp	2012-08-15 17:35:07 UTC (rev 13403)
@@ -82,7 +82,7 @@
  * @tparam RootPointPolicy Determines which point to use as the root node.
  * @tparam StatisticType Statistic to be used during tree creation.
  */
-template<typename MetricType = metric::LMetric<2>,
+template<typename MetricType = metric::LMetric<2, true>,
          typename RootPointPolicy = FirstPointIsRoot,
          typename StatisticType = EmptyStatistic>
 class CoverTree




More information about the mlpack-svn mailing list