Documentation
¶
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 PredictRaces(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)
Find 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 ¶
Calculate 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)
Calculate a predicted race time using the Daniel's Gilbert VO2max criteria.
func PredictRaces ¶
func PredictRaces(runLengthMeters float64, elapsedTime float64) (PredictedTimes map[string]float64, VDOT float64, err error)
Predicted race times using the Daniel's Gilbert VO2max criteria.
func TrainingPaces ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.