| 346 | }; |
| 347 | |
| 348 | void test_blackman_harris() |
| 349 | { |
| 350 | constexpr double tol = 1e-12; |
| 351 | |
| 352 | for (size_t i = 0 ; i < 100 ; ++i) |
| 353 | { |
| 354 | DLIB_TEST(std::abs(dlib::blackman_harris(i, 100, SYMMETRIC) - BLACKHARRIS_SYMMETRIC[i]) < tol); |
| 355 | DLIB_TEST(std::abs(dlib::blackman_harris(i, 100, PERIODIC) - BLACKHARRIS_PERIODIC[i]) < tol); |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | class math_tester : public tester |
| 360 | { |
no test coverage detected