MSS <- 10
MAC <- 8
bodymass <- 75
fv <- create_FVP(MSS, MAC, bodymass)
dist <- seq(5, 40, by = 5)
opt_MSS_MAC_profile <- optimal_MSS_MAC(
distance = dist,
MSS,
MAC
)[["profile_imb"]]
opt_FV_profile <- optimal_FV(
distance = dist,
fv$F0,
fv$V0,
fv$bodymass
)[["profile_imb"]]
opt_FV_profile_peak <- optimal_FV(
distance = dist,
fv$F0,
fv$V0,
fv$bodymass,
method = "peak"
)[["profile_imb"]]
plot(x = dist, y = opt_MSS_MAC_profile, type = "l", ylab = "Profile imbalance")
lines(x = dist, y = opt_FV_profile, type = "l", col = "blue")
lines(x = dist, y = opt_FV_profile_peak, type = "l", col = "red")
abline(h = 100, col = "gray", lty = 2)
Run the code above in your browser using DataLab