Learn R Programming

shorts (version 3.2.0)

find_optimal_distance: Function that finds the distance at which the sprint, probe, or FV profile is optimal (i.e., equal to 100 perc)

Description

Function that finds the distance at which the sprint, probe, or FV profile is optimal (i.e., equal to 100 perc)

Usage

find_optimal_distance(..., optimal_func = optimal_FV, min = 1, max = 60)

Value

Distance

Arguments

...

Forwarded to selected optimal_func

optimal_func

Selected profile optimization function. Default is optimal_FV

min, max

Distance over which to find optimal profile distance

Examples

Run this code
MSS <- 10
MAC <- 8
bodymass <- 75

fv <- create_FVP(MSS, MAC, bodymass)

find_optimal_distance(
  F0 = fv$F0,
  V0 = fv$V0,
  bodymass = fv$bodymass,
  optimal_func = optimal_FV,
  method = "max"
)

find_optimal_distance(
  MSS = MSS,
  MAC = MAC,
  optimal_func = optimal_MSS_MAC
)

find_optimal_distance(
  MSS = MSS,
  MAC = MAC,
  optimal_func = probe_MSS_MAC
)

Run the code above in your browser using DataLab