comparison examples/SpectralCentroid.cpp @ 13:85801331454c

* Make static adapter map a pointer to avoid any confusion about static destructor ordering
author cannam
date Thu, 06 Apr 2006 16:35:49 +0000
parents 44113b1e296b
children 08ee18123f5a
comparison
equal deleted inserted replaced
12:a3d35e11c3fe 13:85801331454c
154 denom += power; 154 denom += power;
155 } 155 }
156 156
157 FeatureSet returnFeatures; 157 FeatureSet returnFeatures;
158 158
159 std::cerr << "power " << denom << ", block size " << m_blockSize << std::endl; 159 // std::cerr << "power " << denom << ", block size " << m_blockSize << std::endl;
160 160
161 if (denom != 0.0) { 161 if (denom != 0.0) {
162 float centroidLin = float(numLin / denom); 162 float centroidLin = float(numLin / denom);
163 float centroidLog = exp10f(float(numLog / denom)); 163 float centroidLog = exp10f(float(numLog / denom));
164 Feature feature; 164 Feature feature;