Generate a function for applying a window transformation to sensor data

transformation_window(window_length, window_overlap)

Arguments

window_length

Length of the sliding window.

window_overlap

Fraction in the interval [0, 1) specifying the amount of window overlap.

Value

A function that accepts as input a dataframe with columns t, axis, value and outputs a windowed transformation of that dataframe