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:
sf : float | 512.

The sampling frequency

n_pts : int | 1000

The number of time points.

n_channels : int | 1

Number of channels

n_trials : int | 1

Number of trials

n_sines : int | 100

Number of sines composing each epoch.

f_min : float | .5

Minimum frequency for sines.

f_max : float | 160.

Maximum frequency for sines.

smooth : float | 50.

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

noise : float | 10.

Noise level.

random_state : int | 0

Fix the random state for the reproducibility.

Returns:
data : array_like

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

time : array_like

A (n_pts,) vector containing time values.