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

Function apply_inverse

mne/minimum_norm/inverse.py:910–1028  ·  view source on GitHub ↗

Apply inverse operator to evoked data. Parameters ---------- evoked : Evoked object Evoked data. inverse_operator : instance of InverseOperator Inverse operator. lambda2 : float The regularization parameter. method : "MNE" | "dSPM" | "sLORETA" | "eLOR

(
    evoked,
    inverse_operator,
    lambda2=1.0 / 9.0,
    method="dSPM",
    pick_ori=None,
    prepared=False,
    label=None,
    method_params=None,
    return_residual=False,
    use_cps=True,
    verbose=None,
)

Source from the content-addressed store, hash-verified

908
909@verbose
910def apply_inverse(
911 evoked,
912 inverse_operator,
913 lambda2=1.0 / 9.0,
914 method="dSPM",
915 pick_ori=None,
916 prepared=False,
917 label=None,
918 method_params=None,
919 return_residual=False,
920 use_cps=True,
921 verbose=None,
922):
923 """Apply inverse operator to evoked data.
924
925 Parameters
926 ----------
927 evoked : Evoked object
928 Evoked data.
929 inverse_operator : instance of InverseOperator
930 Inverse operator.
931 lambda2 : float
932 The regularization parameter.
933 method : "MNE" | "dSPM" | "sLORETA" | "eLORETA"
934 Use minimum norm :footcite:`HamalainenIlmoniemi1994`,
935 dSPM (default) :footcite:`DaleEtAl2000`,
936 sLORETA :footcite:`Pascual-Marqui2002`, or
937 eLORETA :footcite:`Pascual-Marqui2011`.
938 %(pick_ori)s
939 prepared : bool
940 If True, do not call :func:`prepare_inverse_operator`.
941 label : Label | None
942 Restricts the source estimates to a given label. If None,
943 source estimates will be computed for the entire source space.
944 method_params : dict | None
945 Additional options for eLORETA. See Notes for details.
946
947 .. versionadded:: 0.16
948 return_residual : bool
949 If True (default False), return the residual evoked data.
950 Cannot be used with ``method=='eLORETA'``.
951
952 .. versionadded:: 0.17
953 %(use_cps_restricted)s
954
955 .. versionadded:: 0.20
956 %(verbose)s
957
958 Returns
959 -------
960 stc : SourceEstimate | VectorSourceEstimate | VolSourceEstimate
961 The source estimates.
962 residual : instance of Evoked
963 The residual evoked data, only returned if return_residual is True.
964
965 See Also
966 --------
967 apply_inverse_raw : Apply inverse operator to raw object.

Calls 2

_apply_inverseFunction · 0.85
infoMethod · 0.80