optic.dsp.core.delaySignal
- delaySignal(sig, delay, Fs=1, NFFT=1024)
Apply a time delay to a signal sampled at fs samples per second using FFT/IFFT algorithms.
- Parameters:
sig (ndarray) – The input signal.
delay (float) – The time delay to apply to the signal (in seconds).
Fs (float) – Sampling frequency of the signal (in samples per second). Default is 1.
NFFT (int, optional) – FFT size to be used. Must be greater than the length of the filter. If None, it will be set to the next power of 2 greater than or equal to the length of the filter. Default is None.
- Returns:
The delayed signal.
- Return type:
ndarray