sliding_mean_std_one_series

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

Return the mean and standard deviation for all subsequence (l,d) in X.

Parameters:
Xarray, shape (n_channels, n_timestamps)

An input time series

lengthint

Length of the subsequence

dilationint

Dilation of the subsequence. A value of 1 correspond to no dilation.

Returns:
meanarray, shape (n_channels, n_timestamps - (length-1) * dilation)

The mean of each subsequence with parameter length and dilation in X.

stdarray, shape (n_channels, n_timestamps - (length-1) * dilation)

The standard deviation of each subsequence with parameter length and dilation in X.