neurodsp.sim.cycles.sim_gaussian_cycle

neurodsp.sim.cycles.sim_gaussian_cycle(n_seconds, fs, std, center=0.5)[source]

Simulate a cycle of a gaussian.

Parameters
n_secondsfloat

Length of cycle window in seconds.

fsfloat

Sampling frequency of the cycle simulation.

stdfloat

Standard deviation of the gaussian kernel, in seconds.

centerfloat, optional, default: 0.5

The center of the gaussian.

Returns
cycle1d array

Simulated gaussian cycle.

Examples

Simulate a cycle of a gaussian wave:

>>> cycle = sim_gaussian_cycle(n_seconds=0.2, fs=500, std=0.025)