directions: Calculate direction changes per five seconds in sliding...

directionsR Documentation

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)

Arguments

x

a numeric vector on which to perform the calculation

window_size

width of the sliding window, in data points

Value

a numeric vector of values, giving the number of direction changes in the sliding window that corresponds to each epoch of data


TwoRegression documentation built on Sept. 5, 2022, 9:07 a.m.