Frequency response of Resample
Thu, 05/14/2020 - 12:13 pm
A question from a user who is not very good at DSP: What is the frequency response of the Resample function with the default Hanning window? I'd like an analytical solution but googling did not get me very far.
//Generate white noise data
Variable rate = 1e3 // e.g. 1kHz
Make/O/N=1e6 data = gnoise(1)
setscale/P x, 0, 1/rate, data
//Downsample and generate PSD of downsampled data
Duplicate/O data, data_res
Resample/DOWN=(factor) data_res //Hann window default
Basically, I'd like to know the frequency-dependent ratio between data_psd and data_res_psd for a given sampling rate and a given factor, analytically. Can somebody please point me in the right direction?