mne.simulation.
simulate_evoked
(fwd, stc, info, cov, nave=30, tmin=None, tmax=None, iir_filter=None, random_state=None, snr=None, use_cps=None, verbose=None)[source]¶Generate noisy evoked data.
Note
No projections from info
will be present in the
output evoked
. You can use e.g.
evoked.add_proj
or
evoked.set_eeg_reference
to add them afterward as necessary.
Parameters: | fwd : Forward
stc : SourceEstimate object
info : dict
cov : Covariance object
nave : int
tmin : float | None
tmax : float | None
iir_filter : None | array
random_state : None | int | np.random.RandomState
snr : float
use_cps : None | bool (default None)
verbose : bool, str, int, or None
|
---|---|
Returns: | evoked : Evoked object
|
See also
Notes
To make the equivalence between snr and nave, when the snr is given instead of nave:
nave = (1 / 10 ** ((actual_snr - snr)) / 20) ** 2
where actual_snr is the snr to the generated noise before scaling.
New in version 0.10.0.
mne.simulation.simulate_evoked
¶