vera / wilson
Lower bound of Wilson implementation in PHP
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
Type:project
pkg:composer/vera/wilson
Requires (Dev)
- phpunit/phpunit: ^8.3
This package is not auto-updated.
Last update: 2025-11-24 02:11:57 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