You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[hist] Improve precision of TAxis::FindFixBin / FindBin.
Due to the floating-point subtraction x - xMin, the bin index
occasionally flows over to the next bin. This is particularly
annoying when it goes into the overflow, although the coordinate is
strictly smaller than the max of the axis.
By adding a correction term that can detect this case, overflows such as
the one discussed in https://root-forum.cern.ch/t/bug-or-feature-in-ttree-draw/62862
can be avoided.
An error in the other direction is possible, too, and fixed in this
commit:
https://root-forum.cern.ch/t/floating-point-rounding-error-when-filling-the-histogram/35189
Microbenchmarking the changed lines showed them to be the same speed in
gcc, and 40% slower in clang. Both changes are by far outweighted by the
virtual call overhead, though.
This allowed for removing the cautionary note on rounding errors, added
in 1703c54, which is fixed now.
Fix#14091.
0 commit comments