vera / wilson
Lower bound of Wilson implementation in PHP
dev-master
2019-08-24 13:39 UTC
Requires (Dev)
- phpunit/phpunit: ^8.3
This package is not auto-updated.
Last update: 2025-04-27 22:47:28 UTC
README
PHP Implementation of Wilson's lower bound score equation. As described by Evan Miller.
Installation
composer require vera/wilson
Usage
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