training-zone-calculator
v1.0.4
Published
Many cyclists use power meters to measure their output on the bike these days. There are functional threshold power tests that are performed and measure an athletes average output capabilities. This FTP number is used to calculate training zones. I create
Downloads
6
Maintainers
Readme
Cycling Power Zones Calculator
Many cyclists use power meters to measure their output on the bike these days. There are functional threshold power tests that are performed and measure an athletes average output capabilities. This FTP number is used to calculate training zones. I created this package to calculate the low and high points of each of the five training zones by inputting the rider's FTP number. For more information check: https://www.trainingpeaks.com/blog/power-training-levels/
Installation
npm
npm -i training-zone-calculator
yarn
yarn add training-zone-calculator
Usage
import { calculateZones } from 'training-zone-calculator';
const exampleZones1 = calculateZones(234);
// => [0, 127, 128, 174, 175, 209, 210, 244, 245, 279]
const exampleZones2 = calculateZones(-234);
// => null
const exampleZones3 = calculateZones(234.4);
// => [0, 127, 128, 174, 175, 209, 210, 244, 245, 279]