R/processing_movement_functions.R
check_valid_movement.RdChecks the momentary speed, distance from reference position and/or distance from reference movement data frame. To compute speed, and distance across two data frames, the positions in the movement data frame(s) are first resampled to 10 Hz and then median-filtered over 3 data points, to avoid an impact of very short tracker glitches. Distance with respect to fixed position is checked for the first 200 ms of the tracking and operates on raw position values.
check_valid_movement(
df,
ref_df = NULL,
ref_pos = NULL,
max_dist = 2,
max_speed = 10
)A list of validity checks. If df is empty then the summary will be valid