Ticket #2754 (closed: fixed)
getMedian is incorrect for gcc 4.5+
Reported by: | Stuart Campbell | Owned by: | Stuart Campbell |
---|---|---|---|
Priority: | critical | Milestone: | Iteration 28 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Anders Markvardsen |
Description
The median value returned from the Statistics class in Kernel is incorrect for vector with an even number of members.
The unit test StatisticsTest::testInt32Even() fails, it returns 2.5 for the median rather than 3.5
Change History
comment:2 Changed 10 years ago by Stuart Campbell
- Status changed from accepted to verify
- Resolution set to fixed
comment:3 Changed 10 years ago by Stuart Campbell
- Blocking 2580 removed
(In #2580) I will try to test on the various platforms.
comment:4 Changed 9 years ago by Anders Markvardsen
- Status changed from verify to verifying
- Tester set to Anders Markvardsen
Note: See
TracTickets for help on using
tickets.