Mercurial > hg > qm-dsp
diff tests/TestFilter.cpp @ 417:fa851e147e3f
Faster filter implementation with explicit FIR support
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 07 Oct 2015 10:36:09 +0100 |
parents | 1f3244a6884c |
children | 2de6184b2ce0 |
line wrap: on
line diff
--- a/tests/TestFilter.cpp Wed Oct 07 10:07:30 2015 +0100 +++ b/tests/TestFilter.cpp Wed Oct 07 10:36:09 2015 +0100 @@ -28,8 +28,7 @@ vector<double> b(iir_b); vector<double> expected(iir_expected); - FilterConfig config { a.size()-1, a.data(), b.data() }; - Filter f(config); + Filter f({ a, b }); int n = expected.size(); vector<double> out(n, 0.0); @@ -49,8 +48,7 @@ vector<double> b(iir_b); vector<double> expected(iir_expected); - FilterConfig config { a.size()-1, a.data(), b.data() }; - Filter f(config); + Filter f({ a, b }); int n = expected.size(); vector<double> out(n, 0.0); @@ -77,12 +75,10 @@ BOOST_AUTO_TEST_CASE(fir) { - vector<double> a(fir_b.size(), 0.0); //!!! vector<double> b(fir_b); vector<double> expected(fir_expected); - FilterConfig config { b.size()-1, a.data(), b.data() }; - Filter f(config); + Filter f({ {}, b }); int n = expected.size(); vector<double> out(n, 0.0);