A few signal-bits tests

This commit is contained in:
Chris Cannam
2022-06-08 10:35:51 +01:00
parent 95a1d6df25
commit 0b8b0742c1
5 changed files with 155 additions and 9 deletions

View File

@@ -109,7 +109,7 @@ public:
}
v_copy(m_vf, mag, n);
MovingMedian<double>::filter(*m_vFilter, m_vf);
MovingMedian<double>::filter(*m_vFilter, m_vf, n);
if (m_parameters.horizontalFilterLag > 0) {
double *lagged = m_vfQueue.readOne();

View File

@@ -70,7 +70,7 @@ public:
m_numeric[i] = 2; break;
}
}
MovingMedian<int>::filter(m_classFilter, m_numeric.data());
MovingMedian<int>::filter(m_classFilter, m_numeric.data(), m_numeric.size());
double f0 = 0.0;
for (int i = 1; i < n; ++i) {
if (m_numeric[i] != 1) {