Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PowerModel ¶
PowerModel data model for Power formula
func GetListOfPower ¶
func GetListOfPower(pm []PowerModel) []PowerModel
GetListOfPower process the list of given work and time. Throws an error if the work and time is less than zero
func GetResultingPower ¶
func GetResultingPower(w float64, t float64) (PowerModel, error)
GetResultingPower calculate a single work and time to get the resulting power
func GetTransposeTime ¶ added in v1.0.2
func GetTransposeTime(w float64, p float64) (PowerModel, error)
GetTransposeTime calculate the time from work and power
func GetTransposeWork ¶ added in v1.0.2
func GetTransposeWork(t float64, p float64) (PowerModel, error)
GetTransposeWork calculates the work from the given time and power
Click to show internal directories.
Click to hide internal directories.