Mercurial > hg > qm-dsp
diff dsp/segmentation/ClusterMeltSegmenter.cpp @ 44:00603b8a940f
* Add direct support for ATLAS version of CLAPACK
author | cannam |
---|---|
date | Wed, 13 Feb 2008 12:49:47 +0000 |
parents | a251fb0de594 |
children | d72fcd34d9a7 |
line wrap: on
line diff
--- a/dsp/segmentation/ClusterMeltSegmenter.cpp Thu Feb 07 10:01:38 2008 +0000 +++ b/dsp/segmentation/ClusterMeltSegmenter.cpp Wed Feb 13 12:49:47 2008 +0000 @@ -112,13 +112,13 @@ int ClusterMeltSegmenter::getWindowsize() { - return static_cast<int>(windowSize * samplerate); + return static_cast<int>(windowSize * samplerate + 0.001); } int ClusterMeltSegmenter::getHopsize() { - return static_cast<int>(hopSize * samplerate); + return static_cast<int>(hopSize * samplerate + 0.001); } void ClusterMeltSegmenter::extractFeatures(const double* samples, int nsamples)