window: Window the value vector of sensor data for each axis

Description Usage Arguments Value

View source: R/utils.R

Description

Window the value vector of sensor data for each axis

Usage

1
window(sensor_data, window_length, window_overlap, window_name = "hamming")

Arguments

sensor_data

A data frame with columns t, axis, value.

window_length

The number of samples per window.

window_overlap

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

window_name

window name: bartlett, blackman, flattop, hamming, hanning, or rectangle. See ftwindow.

Value

Windowed sensor data


Sage-Bionetworks/mHealthTools documentation built on Sept. 21, 2020, 12:35 p.m.