|
1.中位数的定义:一组数据按从小到大(或从大到小)的顺序依次排列, 处在中间位置的一个数(或最中间两个数据的平均数, 注意:和众数不同, 中位数不一定在这组数据中)
2.The median of a finite list of numbers can be found by arranging all the observations from lowest value to highest value and picking the middle one. If there is an even number of observations, then there is no single middle value; the median is then usually defined to be the mean of the two middle values.
3.所以中位数的函数就是使用median
4.但LZ说的"按大小排列最中间的那两个数中的任意一个", 好像与百度或wiki说明的就不同的 |
|