这里说的中值指的是中位数,比如一列数1,2,3,4,5,6,7的中位数是4,如果个数为奇数则为中间一位,如果为偶数则为中间两位的平均数.
结果如下:
dt a1 a2 a3
----------------------- ----------- ----------- -----------
2010-11-15 10:04:00.000 4 5 1
2010-11-15 10:08:00.000 6 2 5
2010-11-15 10:14:00.000 3 6 6
2010-11-15 10:44:00.000 4 11 8
2010-11-15 11:07:00.000 12 5 9
2010-11-15 11:09:00.000 15 7 11
2010-11-15 11:23:00.000 4 1 3
2010-11-15 11:36:00.000 7 9 6
2010-11-15 11:55:00.000 9 6 3
2010-11-15 12:15:00.000 23 4 1
2010-11-15 12:32:00.000 11 5 4
2010-11-15 12:47:00.000 9 7 7
myt 中值 a2 a3
--------------------------- -------------------- ----------- -----------
2010-11-15 10:00:00 5 6 5
2010-11-15 11:00:00 3 5 6
2010-11-15 12:00:00 2 5 4