This package calculates and displays ERDS maps of event-related EEG/MEG data. ERDS is short for event-related desynchronization (ERD) and event-related synchronization (ERS). Conceptually, ERD corresponds to a decrease in power in a specific frequency band relative to a baseline. Similarly, ERS corresponds to an increase in power.
The erds package uses an API similar to the one used in scikit-learn. Here is a simple example demonstrating the basic usage (note that the actual code for loading the data is missing):
from erds import Erds
maps = Erds()
maps.fit(data) # data must be available in appropriate format
maps.plot()
The input data must be organized in a three-dimensional NumPy array with a shape of (n_epochs, n_channels, n_samples)
. This means that the continuous raw EEG data must be epoched prior to ERDS map calculation.
Example scripts demonstrating some features of the package can be found in the examples
folder.
The package depends on NumPy and matplotlib.