mne_hfo.simulate.simulate_line_noise#

mne_hfo.simulate.simulate_line_noise(fs=5000, freq=50, numcycles=None, random_state=None)[source]#

Line noise artifact.

Parameters:
fsint

Sampling frequency of the signal (default=5000).

freqfloat

Line noise frequency (default=50).

numcyclesfloat

Number of cycles to create.

random_stateNone | int | instance of RandomState

If random_state is an int, it will be used as a seed for RandomState. If None, the seed will be obtained from the operating system (see RandomState for details). Default is None.

Returns:
line_noisenumpy array

1D numpy array with line noise.