mt_time_normalize(data, use = "trajectories", save_as = "tn_trajectories", nsteps = 101, show_progress = TRUE)use will be ignored).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