Shortcuts

BandKurtosis

class torcheeg.transforms.BandKurtosis(sampling_rate: int = 128, order: int = 5, band_dict: Dict[str, Tuple[int, int]] = {'alpha': [8, 14], 'beta': [14, 31], 'gamma': [31, 49], 'theta': [4, 8]}, apply_to_baseline: bool = False)[source][source]

A transform method for calculating the kurtosis of EEG signals in several sub-bands with EEG signals as input.

from torcheeg import transforms

t = transforms.BandKurtosis()
t(eeg=np.random.randn(32, 128))['eeg'].shape
>>> (32, 4)
Parameters:
  • sampling_rate (int) – The original sampling rate of EEG signals in Hz. (default: 128)

  • order (int) – The order of the filter. (default: 5)

  • band_dict – (dict): Band name and the critical sampling rate or frequencies. By default, the kurtosis of the four sub-bands, theta, alpha, beta and gamma, is calculated. (default: {...})

__call__(*args, eeg: ndarray, baseline: ndarray | None = None, **kwargs) Dict[str, ndarray][source][source]
Parameters:
  • eeg (np.ndarray) – The input EEG signals in shape of [number of electrodes, number of data points].

  • baseline (np.ndarray, optional) – The corresponding baseline signal, if apply_to_baseline is set to True and baseline is passed, the baseline signal will be transformed with the same way as the experimental signal.

Returns:

The kurtosis of several sub-bands for all electrodes.

Return type:

np.ndarray[number of electrodes, number of sub-bands]

Read the Docs v: latest
Versions
latest
stable
v1.1.1
v1.1.0
v1.0.11
v1.0.10
v1.0.9
v1.0.8.post1
v1.0.8
v1.0.7
v1.0.6
v1.0.4
v1.0.3
v1.0.2
v1.0.1
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources