vera / wilson
PHP中Wilson实现的下界分数方程
dev-master
2019-08-24 11:39 UTC
Requires (Dev)
- phpunit/phpunit: ^8.3
This package is not auto-updated.
Last update: 2024-09-29 20:24:40 UTC
README
PHP实现Wilson的下界分数方程。如Evan Miller所描述(链接)。
安装
composer require vera/wilson
用法
require 'vendor/autoload.php';
$wilson = new \Vera\Wilson\LowerBound;
$wilson->setConfidence(0.95);
// By default confidence will be set to 0.95 so this is not necessary
$wilson->addRatings(31, 6);
$wilson->getLowerBound(); //0.68863516412593