comparison 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
comparison
equal deleted inserted replaced
156:d6df9fe7b12f 157:d6c1556fadd0
217 217
218 desc.identifier = "metric"; 218 desc.identifier = "metric";
219 desc.name = "Distance metric"; 219 desc.name = "Distance metric";
220 desc.description = "Metric for distance calculations."; 220 desc.description = "Metric for distance calculations.";
221 desc.minValue = 0; 221 desc.minValue = 0;
222 desc.maxValue = 1; 222 desc.maxValue = 2;
223 desc.defaultValue = (int)m_defaultDParams.metric; 223 desc.defaultValue = (int)m_defaultDParams.metric;
224 desc.isQuantized = true; 224 desc.isQuantized = true;
225 desc.quantizeStep = 1; 225 desc.quantizeStep = 1;
226 desc.valueNames.clear(); 226 desc.valueNames.clear();
227 desc.valueNames.push_back("Manhattan");
227 desc.valueNames.push_back("Euclidean"); 228 desc.valueNames.push_back("Euclidean");
228 desc.valueNames.push_back("Cosine"); 229 desc.valueNames.push_back("Cosine");
229 list.push_back(desc); 230 list.push_back(desc);
230 desc.valueNames.clear(); 231 desc.valueNames.clear();
231 232