Mercurial > hg > match-vamp
diff src/DistanceMetric.cpp @ 140:cfba9aec7569 refactors
Separate out the raw & conditioned feature outputs (previously only conditioned was available, but we want raw for our tests). Plus some optional debug output
author | Chris Cannam |
---|---|
date | Thu, 08 Jan 2015 12:11:27 +0000 |
parents | af69db43f5a4 |
children | 7f6f150c1edf 6914a6a01ffc |
line wrap: on
line diff
--- a/src/DistanceMetric.cpp Fri Dec 19 15:07:57 2014 +0000 +++ b/src/DistanceMetric.cpp Thu Jan 08 12:11:27 2015 +0000 @@ -22,6 +22,16 @@ using namespace std; +//#define DEBUG_DISTANCE_METRIC 1 + +DistanceMetric::DistanceMetric(DistanceNormalisation norm) : + m_norm(norm) +{ +#ifdef DEBUG_DISTANCE_METRIC + cerr << "*** DistanceMetric: norm = " << m_norm << endl; +#endif +} + double DistanceMetric::calcDistance(const vector<double> &f1, const vector<double> &f2)