Calculate workout intensity based on heart rate. Exploratory coding of the Training Stress Score as detailed here:
- https://chris-lamb.co.uk/posts/estimating-training-stress-score-tss-running-strava
- http://home.trainingpeaks.com/blog/article/running-training-stress-score-rtss-explained
(duration_seconds * normalized_graded_pace * intensity_factor) /
(functional_threshold_pace * 3600) * 100
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.
- http://engineering.strava.com/improving-grade-adjusted-pace/
- http://www.runnersworld.com/races/downhill-all-way
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.
gem 'stressfactor'
And then execute:
$ bundle
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