Split signals into consecutive, overlapping segments.
segmentation(
signals,
sRates,
segments_size = 10,
step = 1,
padding = 0,
resample = max(sRates),
return_index = FALSE
)
A list of numeric vectors containing signals, or a single vector containing one signal.
A vector or list of integer values of the signals sample rates.
The size of segments, in seconds.
The step between segments, in seconds.
umber of previous and next epochs to pad the current epoch with. Defaults to 0.
The sample rate to resample all signals. Defaults to to the max of the provided sample rates.
If TRUE, the index of segments is returned instead of the segments.
A matrix of segments.
Choi SH, Yoon H, Kim HS, et al. Real-time apnea-hypopnea event detection during sleep by convolutional neural networks. Computers in Biology and Medicine. 2018;100:123-131.