eegprep.eeg_runica#

eegprep.eeg_runica(EEG, posact='off', sortcomps='off', **kwargs)#

Perform ICA decomposition using runica (infomax) algorithm.

Parameters#

EEGdict

EEGLAB-like data structure.

posactstr | bool, optional

If ‘on’ or True, normalize component signs so max(abs(activations)) is positive. Default is ‘off’.

sortcompsstr | bool, optional

If ‘on’ or True, sort components by descending activation variance. Default is ‘off’.

kwargsdict

Additional keyword arguments to pass to the runica algorithm.

Returns#

dict

The updated EEG structure with ICA fields.