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


paulhibbing/TwoRegression documentation built on July 9, 2023, 2:57 a.m.