- . , , . , - , . . = 1 = 2, , , :
x, t = get_waveform()
f0, df = get_parameters()
f = np.fft.rfft(x)
freqs = np.fft.fftfreq(len(x), t[1]-t[0])
freqs = freqs[0:len(f)]
gain_window = 1 + np.exp(-(freqs-f0)**2/(df)**2)
f = f * gain_window
x = np.fft.irfft(f)
return x
, , .
, . / . , . . , FIR IIR.
, , FFT, , , . , . , , , .
, FFT - . ( ) FFT . , , .
, , , , , - .