December 2017
Intermediate to advanced
386 pages
10h 42m
English
from scipy.signal import wiener, medfiltimport matplotlib.pylab as pltplt.plot(t,signal,'k', label='The signal')plt.plot(t,wiener(signal,mysize=55),'r',linewidth=3, label='Wiener filtered')plt.plot(t,medfilt(signal,kernel_size=55),'b',linewidth=3, label='Medfilt filtered')plt.legend()plt.show()
This gives us the following graph showing the comparison of smoothing filters (Wiener, in red, is the one that has its starting point just above 0.5 and Medfilt, in blue, has its starting point just below 0.5):

Most of the filters in the scipy.signal module can be adapted to work with arrays of any dimension. In the particular case of ...
Read now
Unlock full access