Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
bin1d_vec
to properly account for floating point precision
The tolerance for bin size `h` must be based on eps and the _involved_ numbers in calculating it, not the resulting number. The two involved numbers are of the same order of magnitude, and one if it is `a0` (the first bin edge `bin[0] == min(bins)`), for which we already calculate the tolerance (`a0_tol`). So we can use `a0_tol` also as tolerance for `h`.
- Loading branch information