【文件属性】:
文件名称:wilson-score-interval:在 javascript 中实现的威尔逊分数间隔
文件大小:37KB
文件格式:ZIP
更新时间:2021-08-04 21:59:06
wilson-score confidence-intervals wilson JavaScript
威尔逊得分区间
简单 JavaScript 实现。 有用无论你想约一个普通人群的行为或偏好自信的估计,因为数据的样本(如排名得分分配人气,产品)。
目录
安装
$ npm i wilson-score-interval
用法
const wilson = require ( 'wilson-score-interval' ) ;
/*
wilson(upVotes, total);
// upVotes === whatever result you want to estimate the confidence interval for
// total === your total sample size
*/
wilson ( 430 , 474 ) ; // { left: 0.8776750858242243, right: 0.9301239839930541
【文件预览】:
wilson-score-interval-master
----.gitignore(13B)
----.eslintrc(26B)
----package.json(503B)
----package-lock.json(167KB)
----.travis.yml(62B)
----LICENSE(1KB)
----index.js(680B)
----test.js(1KB)
----README.md(5KB)
----.editorconfig(169B)