neurodsp.sim.cycles.sim_sine_cycle

neurodsp.sim.cycles.sim_sine_cycle(n_seconds, fs)[source]

Simulate a cycle of a sine wave.

Parameters
n_secondsfloat

Length of cycle window in seconds.

fsfloat

Sampling frequency of the cycle simulation.

Returns
cycle1d array

Simulated sine cycle.

Examples

Simulate a cycle of a 1 Hz sine wave:

>>> cycle = sim_sine_cycle(n_seconds=1, fs=500)