vera/wilson

PHP中Wilson实现的下界分数方程

安装: 14

依赖项: 0

建议者: 0

安全性: 0

星标: 0

分支: 0

类型:项目

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

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