IaafPoints
1.2.1
PHP 库用于计算世界田径 (IAAF) 田径比赛得分和 WA (IAAF) 综合项目得分。以及其他一些田径成绩的评价。
国际田联正在将品牌更名为 WA,但我们目前没有计划重命名该套餐或任何类别。
我们复制的 WA 评分表如下:https://www.worldathletics.org/about-iaaf/documents/technical-information#collapsescoring-tables
该软件包用于拉脱维亚田径协会的统计系统。
使用作曲家:
composer require glaivepro/ IaafPoints
该软件包提供了多个计算器,它们都提供相同的界面。
// Calculator and use-case specific options.
$ options = [
' gender ' => ' m ' ,
' venueType ' => ' outdoor ' ,
' discipline ' => ' 200m ' ,
];
// Create a calculator instance
$ calculator = new GlaivePro IaafPoints IaafCalculator ( $ options );
// Evaluate a result getting some points or a class assigned to result.
$ points = $ calculator -> evaluate ( 21.61 );
// 980
// Update options
$ calculator -> setOptions ([ ' gender ' => ' f ' ]);
$ points = $ calculator -> evaluate ( 21.61 );
// 1279
请参阅文档了解更多详细信息。
重要的
不要在data/
中编辑任何内容,在resources/
中编辑它。 data/
中的文件是从resources/
中的文件自动生成的。
更多这里。
就在这里。
该软件包根据 MIT 许可证获得许可。