This documentation is for development version 0.18.dev0.

mne.minimum_norm.prepare_inverse_operator

mne.minimum_norm.prepare_inverse_operator(orig, nave, lambda2, method='dSPM', method_params=None, verbose=None)[source]

Prepare an inverse operator for actually computing the inverse.

Parameters:
orig : dict

The inverse operator structure read from a file.

nave : int

Number of averages (scales the noise covariance).

lambda2 : float

The regularization factor. Recommended to be 1 / SNR**2.

method : “MNE” | “dSPM” | “sLORETA” | “eLORETA”

Use minimum norm, dSPM (default), sLORETA, or eLORETA.

method_params : dict | None

Additional options for eLORETA. See Notes of apply_inverse().

New in version 0.16.

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more).

Returns:
inv : instance of InverseOperator

Prepared inverse operator.