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:
- components
ndarray,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.- info
mne.Info Channel info matching the rows of components (EEG channels only).
- rv_thresh
float Residual variance threshold in [0, 1].
- trans
str|Transform Passed to
mne.fit_dipole.
- components
- Returns:
dictfraction_dipolar,n_dipolar,rv_values(one per component).