Skip to content

Toolkit to derive running stats from GPX data: Training Stress Score, Grade Adjusted Pace.

License

Notifications You must be signed in to change notification settings

andrewhao/stressfactor

Repository files navigation

Stressfactor

Build Status Code Climate

Calculate workout intensity based on heart rate. Exploratory coding of the Training Stress Score as detailed here:

Calculating the stressor score by run pace and normalized graded pace.

(duration_seconds * normalized_graded_pace * intensity_factor) /
(functional_threshold_pace * 3600) * 100

Define some terms:

duration_seconds: The length of the workout, in seconds

normalized_graded_pace: Adjusted pace for the incline/decline.

intensity_factor: Ratio of NGP / FTP

functional_threshold_pace: Your average pace, "all out" for 1 hour.

Grade Adjusted Pace

More than a quarter century ago, British researcher Mervyn Davies conducted treadmill tests that revealed that each 1 percent of upgrade slowed elite runners by about 3.3 percent.

That’s uphill. Davies also tested downgrades. Not surprisingly, he found that descents don’t give back as much as ascents take away. In fact, they only speed you up by about 55 percent as much as the corresponding upgrades slow you down.

Installation

gem 'stressfactor'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stressfactor

Usage

$ ./bin/stressfactor analyze PATH_TO_GPX [--units=metric|english]

Contributing

  1. Fork it ( https://github.com/[my-github-username]/stressfactor/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Toolkit to derive running stats from GPX data: Training Stress Score, Grade Adjusted Pace.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages