haseebpatel / csvfix

Automatically exported from code.google.com/p/csvfix
MIT License
0 stars 0 forks source link

summary -med directive does not produce the median value for an even number of rows #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.create a data file with an even number of integers, e.g.: 
1,2,3,23,24,99,100,101 (on separate lines)
2.csvfix summary -med <filename>

What is the expected output? What do you see instead?
23.5, which is the mean value of the two "middle" numbers. Instead I get 61.5, 
which is the mean of the "upper middle" number and the next higher.

What version of the product are you using? On what operating system?
csvfix 1.3 on RHEL 2.6.18-8.el5

Please provide any additional information below.

Original issue reported on code.google.com by wvale...@gmail.com on 2 Jul 2013 at 8:13

GoogleCodeExporter commented 8 years ago

Original comment by nbutterworth1953@gmail.com on 3 Jul 2013 at 8:46

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 06a7f6aa18fe.

Original comment by nbutterworth1953@gmail.com on 3 Jul 2013 at 12:41