MCPcopy
hub / github.com/mne-tools/mne-python / _regularize_out

Function _regularize_out

mne/preprocessing/maxwell.py:2348–2352  ·  view source on GitHub ↗

Regularize out components based on norm.

(int_order, ext_order, mag_or_fine, extended_remove)

Source from the content-addressed store, hash-verified

2346
2347
2348def _regularize_out(int_order, ext_order, mag_or_fine, extended_remove):
2349 """Regularize out components based on norm."""
2350 n_in = _get_n_moments(int_order)
2351 remove_homog = ext_order > 0 and not mag_or_fine.any()
2352 return list(range(n_in, n_in + 3 * remove_homog)) + extended_remove
2353
2354
2355def _regularize_in(int_order, ext_order, S_decomp, mag_or_fine, extended_remove):

Callers 3

_setup_ext_projFunction · 0.85
_regularizeFunction · 0.85
_regularize_inFunction · 0.85

Calls 1

_get_n_momentsFunction · 0.85

Tested by

no test coverage detected