predict

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

func CalcVO2max(v, t float64) float64

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

func TrainingPaces(VO2max float64) (easyPace, maraPace, thresholdPace, intervalPace, repPace float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL