Documentation
¶
Overview ¶
Package predict makes running performance estimates based on VO2max formulas.
Index ¶
- func Bisect(fn func(float64, float64) float64, a float64, b float64, tol float64, ...) (c float64, err error)
- func CalcVO2max(v, t float64) float64
- func Daniels(runLengthMeters float64, elapsedTime float64, raceLengthMeters float64) (tOut float64, VO2max float64, err error)
- func Races(runLengthMeters float64, elapsedTime float64) (PredictedTimes map[string]float64, VDOT float64, err error)
- func TrainingPaces(VO2max float64) (easyPace, maraPace, thresholdPace, intervalPace, repPace float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bisect ¶
func Bisect(fn func(float64, float64) float64, a float64, b float64, tol float64, maxIter int, raceLengthMeters float64) (c float64, err error)
Bisect finds the root of the function (in this case, CalcVO2max) by bisecting https://en.wikipedia.org/wiki/Bisection_method The function argument (fn) signature is specific to CalcVO2max.
func CalcVO2max ¶
CalcVO2max calculates V02max using the Daniel's and Gilbert formula. The velocity is expressed in meters per minute. The time is expressed in minutes.
func Daniels ¶
func Daniels(runLengthMeters float64, elapsedTime float64, raceLengthMeters float64) (tOut float64, VO2max float64, err error)
Daniels calculates a predicted race time using the Daniel's Gilbert VO2max criteria.
func Races ¶
func Races(runLengthMeters float64, elapsedTime float64) (PredictedTimes map[string]float64, VDOT float64, err error)
Races predicts race times using the Daniel's Gilbert VO2max criteria.
func TrainingPaces ¶
func TrainingPaces(VO2max float64) (easyPace, maraPace, thresholdPace, intervalPace, repPace float64)
TrainingPaces calculates training paces based on percentages of VO2max.
Types ¶
This section is empty.