percentile:计算观察变量的第n个百分位数

时间:2021-05-19 03:22:15
【文件属性】:
文件名称:percentile:计算观察变量的第n个百分位数
文件大小:43KB
文件格式:ZIP
更新时间:2021-05-19 03:22:15
statistics stats percentile JavaScript 百分位数 计算第n个百分位数 安装 npm install @elstats/percentile 例子1 import percentile from '@elstats/percentile' ; // calculate p75 percentile ( [ 3 , 6 , 7 , 8 , 8 , 10 , 13 , 15 , 16 , 20 ] , 75 ) ; // → 15 例子2 const percentile = require ( '@esltats/percentile' ) ; function p95 ( ) { return data => percentile ( data , 95 ) ; } p95 ( [ 10 , 13 , 15 , 16 , 20 , 3 , 6 , 7 , 7 , 15 , 19 , 13 ,
【文件预览】:
percentile-master
----.travis.yml(62B)
----.eslintrc(26B)
----.babelrc(27B)
----rollup.config.js(488B)
----index.js(915B)
----test.js(2KB)
----package.json(1KB)
----LICENSE(1KB)
----package-lock.json(183KB)
----.npmignore(36B)
----.gitignore(20B)
----README.md(831B)
----.eslintignore(6B)
----.editorconfig(169B)

网友评论