Clean up handling of median, by treating it almost like any other
[pspp] / src / language / stats / ChangeLog
index bf238758248d52984f9626210dc5b0e40ee347a6..b9c54777739e58ac61961a06586c15a97c005d00 100644 (file)
@@ -1,3 +1,16 @@
+2007-08-01  Ben Pfaff  <blp@gnu.org>
+
+       Clean up handling of median, by treating it almost like any other
+       percentile.  Fixes bug #17424.  Thanks to John Darrington for
+       review.
+       * frequencies.q (internal_cmd_frequencies): Fix handling of bit
+       masks for `stats' variable.  If median is selected, turn it off
+       and add a 50th percentile.
+       (add_percentile): Simplify code a little.
+       (calc_stats): Drop special casing of median.
+       (dump_statistics): Ditto, except that we label the 50th percentile
+       as "50 (Median)" to make it clear that it's also the median.    
+
 2007-07-31  Ben Pfaff  <blp@gnu.org>
 
        Remove integer mode from FREQUENCIES and incidentally fix bug