emd.imftools.find_extrema_locked_epochs#
- emd.imftools.find_extrema_locked_epochs(X, winsize, lock_to='peaks', percentile=None)[source]#
Define epochs around peaks or troughs within the data.
- Parameters:
- Xndarray
Input time-series
- winsizeint
Width of window to extract around each extrema
- lock_to{‘max’,’min’}
Flag to select peak or trough locking (Default value = ‘max’)
- percentilefloat
Optional flag to selection only the upper percentile of extrema by magnitude (Default value = None)
- Returns:
- ndarray
Array of start and end indices for epochs around extrema.