mt_time_normalize(data, use = "trajectories", save_as = "tn_trajectories", dimensions = c("xpos", "ypos"), timestamps = "timestamps", nsteps = 101, verbose = FALSE, show_progress = NULL)use will be ignored)."all", all
trajectory dimensions except the timestamps will be time-normalized.verbose instead.tn_trajectories) containing the
time-normalized trajectories. In this array, another dimension (called
steps) has been added with increasing integer values indexing the
time-normalized position. If a trajectory array was provided directly as
data, only the time-normalized trajectories will be returned.
nsteps) and the positions at different relative time points can
be compared across trajectories.For example, time normalized trajectories can be compared across conditions that differed in their overall response time, as the timestamps are now relative to the overall trial duration. This is also helpful for creating average trajectories, which are often used in plots.
mt_resample for resampling trajectories using a constant time interval.
mt_example <- mt_time_normalize(mt_example,
save_as="tn_trajectories", nsteps=101)
Run the code above in your browser using DataLab