Fix corner case in calculation of trimmed mean.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 10 May 2013 11:46:13 +0000 (13:46 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 10 May 2013 11:46:13 +0000 (13:46 +0200)
commitfb38178d67da062cf6bbbce5ad560aeca8e259c3
tree6277a4ee87df251258a3dab235b632ac930971a7
parent367686641f08e0f6cfd168e451de4e390ee2a759
Fix corner case in calculation of trimmed mean.

The calculation of the trimmed mean was not quite correct.  This
change fixes it, and adds a test.

Reported by: Olaf Nöhring.
src/math/trimmed-mean.c
tests/language/stats/examine.at