View Source Squeeze.RacePredictor (OpenPace v0.0.1)
This module uses vo2max from Daniel's Running Formula to predict other races. With help from this article: http://www.simpsonassociatesinc.com/runningmath9.htm
Link to this section Summary
Functions
Calculates an estimated vo2 max for a given distance and duration (race effort)
Calculates race time predictions for many different race distances based on vo2max
Calculates a predicted race time using vo2max and a distance.
Calculates the velocity (meters/sec) for a given vo2max and percentage.
Link to this section Functions
Calculates an estimated vo2 max for a given distance and duration (race effort)
Returns a float
examples
Examples
iex> estimated_vo2max(5000, 1080) # 18 minute 5k 56.319480966731284
Calculates race time predictions for many different race distances based on vo2max
Returns a map of distance (in meters) to time (in seconds)
examples
Examples
iex> predict_all_race_times(61)
%{distance => time}
Calculates a predicted race time using vo2max and a distance.
Returns the duration (in seconds) for the given distance.
With help from this article: http://www.simpsonassociatesinc.com/runningmath8.htm
examples
Examples
iex> predict_race_time(42_195, 61) |> Squeeze.Duration.format() "2:41:03"
Calculates the velocity (meters/sec) for a given vo2max and percentage.
Say easy pace is between 65% to 70% of your vo2max pace (50). You can use this like the following:
iex> velocity_at_vo2max_percentage(50, 0.65)
3.06818475 # meters per second (8:44 min/mile)