@verbose
def simulate_evoked(fwd, stc, info, cov, snr=3.0, tmin=None, tmax=None, iir_filter=None, random_state=None, verbose=None):
 evoked = apply_forward(fwd, stc, info)
 if (snr < np.inf):
  noise = simulate_noise_evoked(evoked, cov, iir_filter, random_state)
  evoked_noise = add_noise_evoked(evoked, noise, snr, tmin=tmin, tmax=tmax)
 else:
  evoked_noise = evoked
 return evoked_noise

@ verbose def simulate_evoked ( fwd , stc , info , cov , snr = 3.0 , tmin = None , tmax = None , iir_filter = None , random_state = None , verbose = None ) : evoked = apply_forward ( fwd , stc , info ) if ( snr < np . inf ) : noise = simulate_noise_evoked ( evoked , cov , iir_filter , random_state ) evoked_noise = add_noise_evoked ( evoked , noise , snr , tmin = tmin , tmax = tmax ) else : evoked_noise = evoked return evoked_noise
generate noisy evoked data .