dirconn.simulation.inverse.crosstalk#
- dirconn.simulation.inverse.crosstalk(head: HeadModel, rois: Sequence[str] | None = None, *, method: str = 'mne', reg: float | None = None, mode: str = 'pca_flip', snr_db: float = 10.0, n_samples: int = 3000, seed: int) Crosstalk#
Measure the leakage between regions of a head model for an inverse method and region mode.
Every region of the head model is made active with independent unit-variance white activity, seen through its mean topography, with white sensor noise at
snr_db; the series ofroisare extracted exactly asroi_series()does it (for a beamformer the filter is built from these probe data) andcrosstalk_from_series()gives the leakage. A probe with all regions active is a population measure: a region that leaks into a network node need not be a node itself.- Parameters:
head (HeadModel)
rois (sequence of str, optional) – Regions whose series are extracted; default all.
method (see
roi_series().)reg (see
roi_series().)mode (see
roi_series().)snr_db (float) – SNR of the probe, over all sensors.
n_samples (int) – Samples of the probe.
seed (int) – Required.