Skip to content

A .NET implementation of USATF's Age Grade metric using Alan Jones' official tables

License

Notifications You must be signed in to change notification settings

FingerLakesRunnersClub/AgeGradeCalculator

Repository files navigation

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"));

About

A .NET implementation of USATF's Age Grade metric using Alan Jones' official tables

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages