blankalmasry / glicko2-team
该软件包最新版本(1.5)没有可用的许可证信息。
PHP glicko2 组合对手实现
1.5
2021-08-17 15:50 UTC
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-09-17 22:39:46 UTC
README
#Glicko2-Team
PHP glicko2 组合对手实现
该仓库基于https://github.com/diegobanos/php-glicko2构建
如何使用
use Diegobanos\Glicko2\Rating\Rating; use Diegobanos\Glicko2\Glicko2; $team = [ new Rating(1500,350), new Rating(1500,350), new Rating(1500,350), ] $team1 = [ new Rating(1500,350), new Rating(1500,350), new Rating(1500,350), ] // $team won $Ratings = Glicko2::match($team, $team1, 1, 0) //You can add only 1 player to each team, and it will act the same as original glicko2
您还可以创建自己的Rating
类,实现Diegobanos\Glicko2\Rating\Rating\RatingInterface
接口。
该项目中实现的算法在以下PDF中描述。
它使用来自PDF的复合团队更新方法。