diff src/MatchVampPlugin.cpp @ 157:d6c1556fadd0 refactors

Default is actually Manhattan, not Euclidean (it just looks like squared-Euclidean for energy vectors). Add Euclidean as another alternative.
author Chris Cannam
date Thu, 29 Jan 2015 10:55:24 +0000
parents d6df9fe7b12f
children d6cdbd814c8c 123147f096d2
line wrap: on
line diff
--- a/src/MatchVampPlugin.cpp	Thu Jan 29 10:25:47 2015 +0000
+++ b/src/MatchVampPlugin.cpp	Thu Jan 29 10:55:24 2015 +0000
@@ -219,11 +219,12 @@
     desc.name = "Distance metric";
     desc.description = "Metric for distance calculations.";
     desc.minValue = 0;
-    desc.maxValue = 1;
+    desc.maxValue = 2;
     desc.defaultValue = (int)m_defaultDParams.metric;
     desc.isQuantized = true;
     desc.quantizeStep = 1;
     desc.valueNames.clear();
+    desc.valueNames.push_back("Manhattan");
     desc.valueNames.push_back("Euclidean");
     desc.valueNames.push_back("Cosine");
     list.push_back(desc);