get_subsequence_with_mean_std

get_subsequence_with_mean_std(X: ndarray, i_start: int, length: int, dilation: int) tuple[ndarray, ndarray, ndarray][source]

Get a subsequence, its mean and std 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 (n_channels, length)

The resulting subsequence.

meansarray, shape (n_channels)

The mean of each channel

stdsarray, shape (n_channels)

The std of each channel