groupmne.compute_inv_data

groupmne.compute_inv_data(fwds, src_ref, evokeds, noise_cov_s, ch_type='grad', tmin=None, tmax=None)[source]

Compute aligned gain matrices and M-EEG data of the group of subjects.

Parameters
fwdslist

The forward operators computed on the morphed source space src_ref.

src_refinstance of SourceSpace instance

Reference source model.

evokedslist

The Evoked instances, one element for each subject.

noise_cov_slist of instances of Covariance

The noise covariances, one element for each subject.

ch_typestr (default “grad”)

Type of channels used for source reconstruction. Can be one of (“mag”, “grad”, “eeg”). Using more than one type of channels is not yet supported.

tmin: float (default None)

initial time point.

tmax: float (default None)

final time point.

Returns
gains: ndarray, shape (n_subjects, n_channels, n_sources)

The gain matrices.

M: ndarray, shape (n_subjects, n_channels, n_times)

M-EEG data.

group_info: dict

Group information (channels, alignments maps across subjects)