diff options
Diffstat (limited to 'prog/icmpft/fft.py')
-rwxr-xr-x | prog/icmpft/fft.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/prog/icmpft/fft.py b/prog/icmpft/fft.py index d39244a..2350646 100755 --- a/prog/icmpft/fft.py +++ b/prog/icmpft/fft.py @@ -18,6 +18,7 @@ matplotlib.use("GTK3Cairo") from matplotlib import pyplot as plt for host in hosts: N = 10 - fft = np.convolve(np.absolute(rfft(list(hosts[host].values()))), np.ones(N)/N, mode='valid') + fft = np.absolute(rfft(list(hosts[host].values()))) + fft = np.convolve(fft, np.ones(N)/N, mode='valid') plt.plot(list(range(len(fft))), fft) plt.show() |