directions: Calculate direction changes per five seconds in sliding windows
Description
get_directions is legacy code, whereas get_dcp5 is cleaner and
(possibly) faster
Usage
get_directions(x, window_size = 5)get_dcp5(x, window_size = 5)
Value
a numeric vector of values, giving the number of direction
changes in the sliding window that corresponds to each epoch of data
Arguments
- x
a numeric vector on which to perform the calculation
- window_size
width of the sliding window, in data points