dtft

rfnetwork.utils.dtft

rfnetwork.utils.dtft(xn, frequency, fs, downsample=False)

Compute the DTFT of the discrete time signal x[n] over a frequency range (cycles per second),

Return type:

ndarray

Parameters

xnnp.ndarray

time domain samples

frequencynp.ndarray

frequency points to evaluate the DTFT at

fsfloat

sampling frequency of xn

downsamplebool, default: True

allows downsampling prior to computing the DTFT

Returns

np.ndarray

discrete time fourier transform of xn