Last active
August 29, 2015 14:18
-
-
Save Piyush3dB/d9cda943ed1ae42d28d2 to your computer and use it in GitHub Desktop.
Python snippet for a numeric computation of group delay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
N = 20 | |
Nfft = 64 | |
#hn = np.random.rand(N) | |
hn = np.ones(N) | |
hnr = hn*np.arange(N) | |
Tg = np.real(np.fft.fft(hnr, Nfft) / np.fft.fft(hn, Nfft)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment