def data_fun(times):
    return (1e-9 * np.sin(30. * times) *
            np.exp(- (times - 0.15 + 0.05 * rng.randn(1)) ** 2 / 0.01))
Function to generate random source time courses
dataset/ETHPy150Open mne-tools/mne-python/examples/simulation/plot_simulate_evoked_data.py/data_fun