Sinus Waves¶
New in version 0.1.
This function generates sinus waves with given period, amplitude and offset. It is also possible to use delay defined in samples to crop the first wave.
Function Documentation¶
-
signalz.generators.sinus.
sinus
(n, period=100, amplitude=2, offset=0, delay=0)[source]¶ Sinus waves generator.
Args:
- n - length of the output data (int) - how many samples will be on output
Kwargs:
- period - length of one sinus wave period (1 / frequency)
- amplitude - difference between minimal and maximal value of waves
- offset - mean value (float)
- delay - how many samples should be croped from first wave (does not influence full length of data)
Returns:
- vector of sinus waves (1d array)