MCPcopy Create free account
hub / github.com/davisking/dlib / test_blackman_harris

Function test_blackman_harris

dlib/test/math.cpp:348–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

perform_testMethod · 0.85

Calls 2

absFunction · 0.85
blackman_harrisFunction · 0.85

Tested by

no test coverage detected