def simulate_noise_evoked(evoked, cov, iir_filter=None, random_state=None):
 noise = evoked.copy()
 noise.data = _generate_noise(evoked.info, cov, iir_filter, random_state, evoked.data.shape[1])[0]
 return noise

def simulate_noise_evoked ( evoked , cov , iir_filter = None , random_state = None ) : noise = evoked . copy ( ) noise . data = _generate_noise ( evoked . info , cov , iir_filter , random_state , evoked . data . shape [ 1 ] ) [ 0 ] return noise
create noise as a multivariate gaussian .