get_subsequence¶
- get_subsequence(X: ndarray, i_start: int, length: int, dilation: int) ndarray¶
Get a subsequence from a time series given a starting index.
- Parameters:
- Xarray, shape (n_channels, n_timepoints)
Input time series.
- i_startint
A starting index between [0, n_timepoints - (length-1)*dilation]
- lengthint
Length parameter of the subsequence.
- dilationint
Dilation parameter of the subsequence.
- Returns:
- valuesarray, shape (length)
The resulting subsequence.