vera/wilson

Lower bound of Wilson implementation in PHP

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:project

dev-master 2019-08-24 11:39 UTC

This package is not auto-updated.

Last update: 2024-04-14 18:11:35 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