项目作者: 3BenLee

项目描述 :
This is a small module to calculate cycling power training zones.
高级语言: TypeScript
项目地址: git://github.com/3BenLee/training-zone-calculator.git
创建时间: 2019-06-01T06:23:30Z
项目社区:https://github.com/3BenLee/training-zone-calculator

开源协议:

下载


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

  1. npm -i training-zone-calculator

yarn

  1. yarn add training-zone-calculator

Usage

  1. import training-zone-calculator from 'training-zone-calculator';
  2. const exampleZones1 = trainingZoneCalculator(234);
  3. // => [0, 127, 128, 174, 175, 209, 210, 244, 245, 279]
  4. const exampleZones2 = trainingZoneCalculator(-234);
  5. // => null
  6. const exampleZones3 = trainingZoneCalculator(234.4);
  7. // => [0, 127, 128, 174, 175, 209, 210, 244, 245, 279]

Reference