Searches for movement onsets and returns time since start for each event

search_onsets(obj, speed_threshold, min_duration, ...)

# S3 method for navr
search_onsets(obj, speed_threshold, min_duration = 0,
  still_speed_threshold = speed_threshold, still_duration = 0,
  pause_duration = 0)

Arguments

obj

Valid object

speed_threshold

what is the speed considered to be the moving speed

min_duration

in secouds how long should the person be moving

...
still_speed_threshold

what is considered to be the still speed threshold. Defualts to `speed_threshold``

still_duration

how long before the onset should hte person be still in seconds. Defaults to 0

pause_duration

how long "non" moving can the person be to allow still counting as an onset? In seconds. Defaults to 0

Value

list with times, time since start, and durations of movement epochs

Methods (by class)

  • navr: Searches onsets in navr object. THe navr object has to have calculated speeds, times etc.