j601/system/extras/help/phrases/math_stats.htm
gives the following forumla.
m0=: median=: <[EMAIL PROTECTED]:@# { /:~ Median of y
That formula is accurate only for medians of data of
odd count, not even. A definition which would work for and
count is the following.
median =: <[EMAIL PROTECTED]:@# +/@:(-:@{"1) (,:|.)@:/:~
median 2 8 3 4
3.5
median 2 8 3
3
median 2 8 3 0 0 0 0
0
median 2 8 3 0 0 0
1
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm