Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.86 KB

README.md

File metadata and controls

28 lines (18 loc) · 1.86 KB

Age Grade Calculator

A .NET implementation of USATF's Age Grade metric using Alan Jones' official tables (https://github.com/AlanLyttonJones/Age-Grade-Tables)

NuGet version CI Coverage

Maintainability Rating Reliability Rating Security Rating

Requirements

A .NET runtime compatible with .NET Standard 2.0

Installation

Simply add AgeGradeCalculator to your project via NuGet

Usage

Call the static method with the appropriate parameters to receive a double representing the provided athlete's age grade percent:

var ageGrade1 = AgeGradeCalculator.GetAgeGrade(Category.M, 36, 10_000, TimeSpan.Parse("39:26.5"));
var ageGrade2 = AgeGradeCalculator.GetAgeGrade(Category.F, 29, 1609.3, TimeSpan.Parse("4:30.2"));