Applied simple linear regression model using force and velocity columns from the profile_data and returns calculated F0, V0, Pmax, and Sfv

get_FV_profile(
  profile_data,
  force = "mean_GRF_over_distance",
  velocity = "mean_velocity",
  poly_deg = 1
)

Arguments

profile_data

Data frame returned from vj_profile function

force

Character string. Name of the column in the profile_data. Default is "mean_GRF_over_distance"

velocity

Character string. Name of the column in the profile_data. Default is "mean_velocity"

poly_deg

Integer. Number of polynomial degrees. Forwarded to poly function. Default is 1 (for simple linear regression)

Value

List with calculated F0, V0, Pmax, and Sfv

Examples

fv_profile <- vj_profile(mass = 75) get_FV_profile(fv_profile)
#> $F0 #> [1] 3582.475 #> #> $F0_rel #> [1] 47.76633 #> #> $V0 #> [1] 1.821094 #> #> $Pmax #> [1] 1631.006 #> #> $Pmax_rel #> [1] 21.74674 #> #> $Sfv #> [1] -1967.211 #> #> $Sfv_rel #> [1] -26.22947 #>