labs weeks 1-3 Flashcards
structure how we store EEG data
in raw format stored in an array, with a separate index variable for the time axis
where are amplitude, frequency and offset in the sine wave?
ERP in terms of the EEG data
the average signal over individual trials for a particular electrode (could be for particular or all participants)
how is the data of the EEG stored?
nChan x nTime x nTrial
what does this mean?
64 channels (electrodes)
640 samples/timepoints for each channel
99 repetitions (trials) for each recording
compute the ERP of each channel in Python
erp = np.nanmean(data, axis = 2)
ValueError: x and y must have same first dimension, but have shapes (640,) and (64, 640)
- what to do?
np.transpose(y)
how to make this plot?
how to display legend like this?
ax.legend(channames, ncol = 6, bbox_to_anchor=(1,1), loc=”upper left”)