eeg_runica#

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

Perform ICA decomposition using runica (infomax) algorithm.

When option_scaleicarms is enabled, components are scaled so each mixing column has RMS 1, matching EEGLAB eeg_checkset.

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.