Flags non-wear windows where the accelerometer is stationary: at least
min_axes of the three axes have a low standard deviation and value range
over a long window (van Hees et al. 2011).
Usage
detectNonWear(
accel,
sampling_rate,
window_min = 60,
step_min = NULL,
sd_thresh = 0.013,
range_thresh = 0.05,
min_axes = 2L
)Arguments
- accel
An n x 3 matrix of acceleration in g units.
- sampling_rate
Sampling rate in Hz.
- window_min
Window length in minutes (default 60).
- step_min
Window step in minutes;
NULLuseswindow_min / 4. A sliding (overlapping) window prevents a non-wear period from being diluted across a block boundary.- sd_thresh
Per-axis standard-deviation threshold (default 0.013 g).
- range_thresh
Per-axis value-range threshold (default 0.050 g).
- min_axes
Number of axes that must meet both criteria (default 2).