Skip to contents

This function creates sprint trace either using time or distance vectors

Usage

create_sprint_trace(
  MSS,
  MAC,
  time = NULL,
  distance = NULL,
  TC = 0,
  DC = 0,
  FD = 0,
  remove_leading = FALSE
)

Arguments

MSS, MAC

Numeric vector. Model parameters

time

Numeric vector.

distance

Numeric vector.

TC

Numeric vector. Time-shift added to sprint times. Default is 0

DC

Numeric vector. Distance-shift added to sprint distance. Default is 0

FD

Numeric vector. Flying start distance. Default is 0

remove_leading

Should trace leading to sprint be removed? Default is FALSE

Value

Data-frame with following 6 columns

time

Measurement-scale time vector in seconds. Equal to parameter time

distance

Measurement-scale distance vector in meters. Equal to parameter distance

velocity

Velocity vector in m/s

acceleration

Acceleration vector in m/s/s

sprint_time

Sprint scale time vector in seconds. Sprint always start at t=0s

sprint_distance

Sprint scale distance vector in meters. Sprint always start at d=0m

Examples


df <- create_sprint_trace(8, 7, time = seq(0, 6, by = 0.01))
df <- create_sprint_trace(8, 7, distance = seq(0, 40, by = 1))