Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use absolute tolerance for stddev_and_mean #652

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

argilo
Copy link
Member

@argilo argilo commented Oct 13, 2023

Fixes #648.

qa_volk_32f_stddev_and_mean_32f_x2 frequently fails. The problem is that the mean value of uniformly distributed points ends up very close to zero, where the relative error can be huge even when the absolute error is small. We care about absolute error here, so I've switched the test to check the absolute error. After doing so, the test happily runs in a loop without failure:

while ctest -R qa_volk_32f_stddev_and_mean_32f_x2 --output-on-failure; do :; done

@argilo
Copy link
Member Author

argilo commented Oct 13, 2023

The test failure is unrelated; it's due to #646.

Copy link
Contributor

@jdemel jdemel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jdemel jdemel merged commit 315be3e into gnuradio:main Oct 22, 2023
32 checks passed
@argilo argilo deleted the fix-flaky-stddev branch December 2, 2023 16:50
Alesha72003 pushed a commit to Alesha72003/volk that referenced this pull request May 15, 2024
Use absolute tolerance for stddev_and_mean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qa_volk_32f_stddev_and_mean_32f_x2 is flaky
2 participants