Mercurial > hg > vamp-plugin-sdk
comparison examples/SpectralCentroid.cpp @ 19:08ee18123f5a
* Build fixes for OS/X and Windows
author | cannam |
---|---|
date | Wed, 12 Apr 2006 09:57:07 +0000 |
parents | 85801331454c |
children | 16eeab18bf72 |
comparison
equal
deleted
inserted
replaced
18:b4043af42278 | 19:08ee18123f5a |
---|---|
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 = powf(10, float(numLog / denom)); |
164 Feature feature; | 164 Feature feature; |
165 feature.hasTimestamp = false; | 165 feature.hasTimestamp = false; |
166 feature.values.push_back(centroidLog); | 166 feature.values.push_back(centroidLog); |
167 returnFeatures[0].push_back(feature); | 167 returnFeatures[0].push_back(feature); |
168 feature.values.clear(); | 168 feature.values.clear(); |