R/processing_movement_functions.R
check_valid_movement.Rd
Checks 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 movement data frame
A reference movement data frame (default: NULL)
A reference initial position (list containing `pos_x` and `pos_z` items) (default: NULL)
A maximum distance in metre (default: 2)
A maximum speed in m/s (default: 10)
A list of validity checks. If df is empty then the summary will be valid