无涯教程-JavaScript - PERCENTILE函数
PERCENTILE函数替代Excel 2010中的PERCENTILE.INC函数。
描述
该函数返回范围中值的第k个百分位数。您可以使用此功能建立接受阈值。
语法
PERCENTILE (array,k)
争论
Argument | 描述 | Required/Optional |
---|---|---|
Array | The array or range of data that defines relative standing. | Required |
K | The percentile value in the range 0...1, inclusive. | Required |
Notes
如果k不是1 /(n-1)的倍数,则PERCENTILE进行插值以确定第k个百分位数的值。
如果k为非数值,则PERCENTILE返回#VALUE!错误值。
If k is < 0 or if k > 1, PERCENTILE returns the #NUM! error value.
Example

参考链接
转载自:https://juejin.cn/post/7273483403835047993