Opened 9 years ago

Last modified 9 years ago

#9533 new Bugs

boost::accumulators::weighted_median different results for debug and release modes

Reported by: Andrey Urusov <drobus@…> Owned by: Matthias Troyer
Milestone: To Be Determined Component: accumulator
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

I have a different results for debug and release modes. Look at readme and example in

https://github.com/aurusov/boost_accumulators_weighted_median_error

Change History (1)

comment:1 by Eric Niebler, 9 years ago

Owner: changed from Eric Niebler to Matthias Troyer

Matthias, can you comment? I know that the P2 algorithm requires *far* more samples than is being provided here for any reasonable accuracy, but I can't fathom why the result should be different for different optimization levels. I don't believe gcc does unsafe floating point optimizations unless you specifically tell it to. Or am I mistaken about that?

Last edited 9 years ago by Eric Niebler (previous) (diff)
Note: See TracTickets for help on using tickets.