Skip to contents

Discrete turn-lag optimization sweep across signed lags

Usage

tma_sweep_signed_turn_lags(
  pts_a,
  pts_b,
  x_col = "MR1",
  y_col = "MR2",
  time_col = "index",
  max_lag = 15L
)

Arguments

pts_a

ETM point rows for agent A

pts_b

ETM point rows for agent B

x_col

Column name for x coordinate

y_col

Column name for y coordinate

time_col

Column name for turn index / timestamp

max_lag

Max integer lag to sweep

Value

List with best_lag, min_mean_distance, lags, and mean_distances