bemobil_mne.preproc.compute_dipolarity#

bemobil_mne.preproc.compute_dipolarity(components, info, rv_thresh=0.15, trans='fsaverage')[source]#

Fraction of ICA topographies with dipole residual variance below rv_thresh.

RV = 1 − GOF/100. A component is dipolar when RV < rv_thresh (default 15%).

Parameters:
componentsndarray, shape (n_channels, n_components)

ICA mixing-matrix columns (topographies). For a standard ICA use ica.get_components(). For a combined head+neck ICA, pass only the head-channel rows.

infomne.Info

Channel info matching the rows of components (EEG channels only).

rv_threshfloat

Residual variance threshold in [0, 1].

transstr | Transform

Passed to mne.fit_dipole.

Returns:
dict

fraction_dipolar, n_dipolar, rv_values (one per component).