Skip to content

Commit

Permalink
Use a reasonable scalar and tolerance for spectral_noise_floor
Browse files Browse the repository at this point in the history
Signed-off-by: Clayton Smith <[email protected]>
  • Loading branch information
argilo committed Nov 10, 2023
1 parent 56a893c commit 091f7e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/kernel_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ std::vector<volk_test_case_t> init_test_list(volk_test_params_t test_params)
test_params_rotator.set_scalar(std::polar(1.0f, 0.1f));
test_params_rotator.set_tol(1e-3);

volk_test_params_t test_params_snf(test_params);
test_params_snf.set_scalar(0.5);
test_params_snf.set_tol(1e-4);

std::vector<volk_test_case_t> test_cases;
QA(VOLK_INIT_PUPP(volk_64u_popcntpuppet_64u, volk_64u_popcnt, test_params))
QA(VOLK_INIT_PUPP(volk_16u_byteswappuppet_16u, volk_16u_byteswap, test_params))
Expand Down Expand Up @@ -93,7 +97,7 @@ std::vector<volk_test_case_t> init_test_list(volk_test_params_t test_params)
QA(VOLK_INIT_TEST(volk_32f_asin_32f, test_params_inacc))
QA(VOLK_INIT_TEST(volk_32f_acos_32f, test_params_inacc))
QA(VOLK_INIT_TEST(volk_32fc_s32f_power_32fc, test_params_power))
QA(VOLK_INIT_TEST(volk_32f_s32f_calc_spectral_noise_floor_32f, test_params_inacc))
QA(VOLK_INIT_TEST(volk_32f_s32f_calc_spectral_noise_floor_32f, test_params_snf))
QA(VOLK_INIT_TEST(volk_32fc_s32f_atan2_32f, test_params))
QA(VOLK_INIT_TEST(volk_32fc_x2_conjugate_dot_prod_32fc, test_params_inacc_tenth))
QA(VOLK_INIT_TEST(volk_32fc_deinterleave_32f_x2, test_params))
Expand Down

0 comments on commit 091f7e9

Please sign in to comment.