[mlpack-svn] r14371 - mlpack/trunk/src/mlpack/core/metrics
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Feb 22 18:13:27 EST 2013
Author: rcurtin
Date: 2013-02-22 18:13:27 -0500 (Fri, 22 Feb 2013)
New Revision: 14371
Modified:
mlpack/trunk/src/mlpack/core/metrics/lmetric.hpp
Log:
By default, take the root. Then it is a true metric. (L2-squared distance is
not a metric).
Modified: mlpack/trunk/src/mlpack/core/metrics/lmetric.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/metrics/lmetric.hpp 2013-02-22 23:13:02 UTC (rev 14370)
+++ mlpack/trunk/src/mlpack/core/metrics/lmetric.hpp 2013-02-22 23:13:27 UTC (rev 14371)
@@ -54,7 +54,7 @@
* is returned. Setting this to false causes the metric to not satisfy the
* Triangle Inequality (be careful!).
*/
-template<int Power, bool TakeRoot = false>
+template<int Power, bool TakeRoot = true>
class LMetric
{
public:
More information about the mlpack-svn
mailing list