neurodsp.sim.cycles.sim_gaussian_cycle

neurodsp.sim.cycles.sim_gaussian_cycle(n_seconds, fs, std)[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.

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)