groupmne.compute_group_inverse

groupmne.compute_group_inverse(fwds, evokeds, noise_covs, method='multitasklasso', depth=0.8, spatiotemporal=False, verbose=True, **solver_kwargs)[source]

Compute inverse solution for a group of subjects.

Parameters
fwds: list of `mne.Forward`.

Forward soluton of each subject.

evokeds: list of `mne.Evokeds`

Evoked object of each subject.

noise_covs: list of `mne.Covariance`

Noise covariance of each subject.

method: str

Model used for the joint prior. Must be one of (‘lasso’, ‘relasso’, ‘multitasklasso’, ‘dirty’, ‘mtw’, ‘remtw’).

depth: float.

How to weight (or normalize) the forward using a depth prior. If float (default 0.8), it acts as the depth weighting exponent (exp) to use, which must be between 0 and 1. None is equivalent to 0, meaning no depth weighting is performed.

spatiotemporal: boolean.

If True, apply a spatiotemporal prior on the source estimates. Only for method = multitasklasso.

solvers_kwargs: additional keyword arguments passed to the solver.
Returns
stcs: list of mne.SourceEstimates.

Source estimates.