alphacsc.utils.signal.check_univariate_signal#

alphacsc.utils.signal.check_univariate_signal(X)#

Return an array that can be used with alphacsc transformers for univariate signals.

Parameters:
Xndarray, shape (n_times,) or (n_trials, n_times)

Signal to be reshaped. It should be a single signal.

Returns:
X: ndarray, shape (n_trials, n_channels, n_times)

The signal with the correct number of dimensions to be use with alphacsc transformers.