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