diff src/FeatureConditioner.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 b62dbe2ba958
children d1bc89794cd4
line wrap: on
line diff
--- a/src/FeatureConditioner.cpp	Fri Dec 19 15:07:57 2014 +0000
+++ b/src/FeatureConditioner.cpp	Thu Jan 08 12:11:27 2015 +0000
@@ -20,6 +20,20 @@
 
 using namespace std;
 
+//#define DEBUG_FEATURE_CONDITIONER 1
+
+FeatureConditioner::FeatureConditioner(Parameters parameters) :
+    m_params(parameters),
+    m_ltAverage(0.0)
+{
+#ifdef DEBUG_FEATURE_CONDITIONER
+    cerr << "*** FeatureConditioner: norm = " << parameters.norm
+         << ", order = " << parameters.order
+         << ", silenceThreshold = " << parameters.silenceThreshold
+         << ", decay = " << parameters.decay << endl;
+#endif
+}
+
 vector<double>
 FeatureConditioner::process(const vector<double> &feature)
 {