Fixed some issues calculating percentiles when missing values are involved.
authorJohn Darrington <john@marilyn.intra>
Sun, 24 Aug 2008 05:22:02 +0000 (13:22 +0800)
committerJohn Darrington <john@marilyn.intra>
Sat, 6 Sep 2008 01:17:51 +0000 (09:17 +0800)
commitd7c0f3aae79a66ccba9d0f23f357a2249a0e9b0a
tree47a143848123741fa7f6702fdff7019ab772b043
parentea290cd057ea5eaf6e42bd7f4a66dba481413c6a
Fixed some issues calculating percentiles when missing values are involved.

Added an extra argument to order_stats_accumulate, to indicate which classes
of missing values should be excluded.  Added an internal cumulative weight
counter, to ensure that the declared total weight agrees with that which is
encountered.
src/language/stats/examine.q
src/math/order-stats.c
src/math/order-stats.h
src/math/percentiles.c
src/math/percentiles.h
src/math/trimmed-mean.c