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.
And then execute:
Or install it yourself as:
$ gem install stressfactor
$ ./bin/stressfactor analyze PATH_TO_GPX [--units=metric|english]
- Fork it ( https://github.com/[my-github-username]/stressfactor/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request