[mlpack-svn] r17274 - mlpack/trunk/src/mlpack/core/metrics
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Oct 31 16:59:57 EDT 2014
Author: rcurtin
Date: Fri Oct 31 16:59:56 2014
New Revision: 17274
Log:
Make the Mahalanobis distance a true metric by default.
Modified:
mlpack/trunk/src/mlpack/core/metrics/mahalanobis_distance.hpp
Modified: mlpack/trunk/src/mlpack/core/metrics/mahalanobis_distance.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core/metrics/mahalanobis_distance.hpp (original)
+++ mlpack/trunk/src/mlpack/core/metrics/mahalanobis_distance.hpp Fri Oct 31 16:59:56 2014
@@ -40,9 +40,11 @@
* which is faster to evaluate.
*
* @tparam TakeRoot If true, takes the root of the output. It is slightly
- * faster to leave this at the default of false.
+ * faster to leave this at the default of false, but this means the metric may
+ * not satisfy the triangle inequality and may not be usable for methods that
+ * expect a true metric.
*/
-template<bool TakeRoot = false>
+template<bool TakeRoot = true>
class MahalanobisDistance
{
public:
More information about the mlpack-svn
mailing list