visbrain.utils.generate_eeg

visbrain.utils.generate_eeg(sf=512.0, n_pts=1000, n_channels=1, n_trials=1, n_sines=100, f_min=0.5, f_max=160.0, smooth=50, noise=10, random_state=0)[source][source]

Generate random eeg signals.

Parameters
sffloat | 512.

The sampling frequency

n_ptsint | 1000

The number of time points.

n_channelsint | 1

Number of channels

n_trialsint | 1

Number of trials

n_sinesint | 100

Number of sines composing each epoch.

f_minfloat | .5

Minimum frequency for sines.

f_maxfloat | 160.

Maximum frequency for sines.

smoothfloat | 50.

The smoothing factor. Use larger smoothing to reduce high frequencies.

noisefloat | 10.

Noise level.

random_stateint | 0

Fix the random state for the reproducibility.

Returns
dataarray_like

Dataset as a (n_channels, n_trials, n_pts) array.

timearray_like

A (n_pts,) vector containing time values.