predict

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package predict makes running performance estimates based on VO2max formulas.

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)

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

func CalcVO2max(v, t float64) float64

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.

Jump to

Keyboard shortcuts

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