Skip to content

fix: update sequential_add_mul to account for precision errors #80

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

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

jvdd
Copy link
Member

@jvdd jvdd commented Jan 27, 2025

Adds an epsilon to sequential_add_mul to account for precision errors.
In particular, when using an integer index, the equidistant binning suffered rounding down errors due to precision (e.g., T::from_f64(499.9999999994) -> 499 instead of 500)

Thanks to @my1e5 for pointing out this issue :)

@jvdd jvdd changed the title fix: update sequential_add_mul (allow for minor precision error) fix: update sequential_add_mul to account for precision errors Jan 28, 2025
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (05334d5) to head (27800e1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main     #80   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          4       4           
  Lines        371     371           
=====================================
  Misses       371     371           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jvdd jvdd merged commit a83f272 into main Jan 28, 2025
41 of 43 checks passed
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.

2 participants