sim_asine_cycle(n_seconds, fs, rdsym)¶
Simulate a cycle of an asymmetric sine wave.
Length of cycle window in seconds. Note that this is NOT the period of the cycle, but the length of the returned array that contains the cycle, which can be (and usually is) much shorter.
Sampling frequency of the cycle simulation.
Rise-decay symmetry of the cycle, as fraction of the period in the rise time, where: = 0.5 - symmetric (sine wave) < 0.5 - shorter rise, longer decay > 0.5 - longer rise, shorter decay
- cycle1d array
Simulated asymmetric cycle.
Simulate a 2 Hz asymmetric sine cycle:
>>> cycle = sim_asine_cycle(n_seconds=0.5, fs=500, rdsym=0.75)