Don't run median filters for higher frequencies than we're going to use anyway

This commit is contained in:
Chris Cannam
2022-06-07 11:05:50 +01:00
parent 1bfd02c6f3
commit 8ed709d274
3 changed files with 21 additions and 14 deletions

View File

@@ -98,7 +98,9 @@ public:
m_hFilters->reset();
}
void classify(const double *const mag, Classification *classification) {
void classify(const double *const mag, // input, of at least binCount bins
Classification *classification) // output, of binCount bins
{
const int n = m_parameters.binCount;
for (int i = 0; i < n; ++i) {