Showing the changes to python (2 of 3 files). Show all
Unified · Split
| @@ -0,0 +1,2 @@ | |||
| 1 | 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 5.00000000e-01 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 | ||
| 2 | 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 3.39108697e-01 2.23441868e-01 -1.31029191e-01 3.33061907e-02 -2.89386407e-02 -1.68524660e-02 -5.02737225e-03 -2.47225074e-02 -3.06670933e-03 -2.20570849e-02 -5.57507292e-03 -1.81342032e-02 -7.89289483e-03 -1.50756531e-02 -9.23565472e-03 -1.29964131e-02 -9.78591684e-03 -1.16053213e-02 -9.84372912e-03 -1.06315198e-02 | ||
| @@ -40,6 +40,15 @@ class aubio_filter_test_case(TestCase): · 39 unmodified lines | |||
| 40 | u = f(v) | 40 | u = f(v) |
| 41 | assert_almost_equal (expected[1], u) | 41 | assert_almost_equal (expected[1], u) |
| 42 | 42 | ||
| 43 | def test_c_weighting_8000(self): | ||
| 44 | expected = array_from_text_file('c_weighting_test_simple_8000.expected') | ||
| 45 | f = digital_filter(5) | ||
| 46 | f.set_c_weighting(8000) | ||
| 47 | v = fvec(32) | ||
| 48 | v[12] = .5 | ||
| 49 | u = f(v) | ||
| 50 | assert_almost_equal (expected[1], u) | ||
| 51 | |||
| 43 | def test_a_weighting(self): | 52 | def test_a_weighting(self): |
| 44 | expected = array_from_text_file('a_weighting_test_simple.expected') | 53 | expected = array_from_text_file('a_weighting_test_simple.expected') |
| 45 | f = digital_filter(7) | 54 | f = digital_filter(7) |