Ticket #2754 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

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:1 Changed 10 years ago by Stuart Campbell

  • Status changed from new to accepted

comment:2 Changed 10 years ago by Stuart Campbell

  • Status changed from accepted to verify
  • Resolution set to fixed

(In [10487]) fixes #2754

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

comment:5 Changed 9 years ago by Anders Markvardsen

  • Status changed from verifying to closed

Looks good

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3601

Note: See TracTickets for help on using tickets.