runalyze/age-grade
最新稳定版本:2.2.0
Composer 安装命令:
composer require runalyze/age-grade
包简介
Age grading for race results (running) based on tables provided by WMA
README 文档
README
Library to provide age grading for race results (running) based on tables provided by Alan Jones using standards by WMA (World Masters Athletics) and USATF (USA Track and Field).
Usage
use Runalyze\AgeGrade\Lookup; use Runalyze\AgeGrade\Table\MaleTable; $Lookup = new Lookup(new MaleTable(), 54); echo $Lookup->getAgeGrade(10.0, 42 * 60 + 25); // output: 0.7329
Internally, getAgeGrade() returns an AgeGrade object that will return the rounded age grade value when transformed to a string.
You can fetch more details by respective methods:
$Lookup = new Lookup(new MaleTable(), 54); $AgeGrade = $Lookup->getAgeGrade(10.0, 42 * 60 + 25); $AgeGrade->getPerformance(); // returns 0.7329 $AgeGrade->getAgeStandard(); // returns 1865 $AgeGrade->getOpenStandard(); // returns 1603 $AgeGrade->getAgeFactor(); // returns 0.8594
License
- Code released under the MIT license.
- Tables are licensed under Creative Commons Attribution 4.0 International License.
- All Masters standards/factors are as approved by the WMA Vice President - Non Stadia, WMA President, and USATF MLDR Committee.
统计信息
- 总下载量: 19.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-04