.. _book_fig_chapter10_fig_wiener_filter: Wiener Filter Example --------------------- Figure 10.10 An example of data filtering using a Wiener filter. The upper-left panel shows noisy input data (200 evenly spaced points) with a narrow Gaussian peak centered at x = 20. The bottom panels show the input (left) and Wiener-filtered (right) power spectral density (PSD) distributions. The two curves in the bottom-left panel represent two-component fit to PSD given by eq. 10.20. The upper-right panel shows the result of the Wiener filtering on the input: the Gaussian peak is clearly seen. For comparison, we also plot the result of a fourth-order Savitzky-Golay filter with a window size of lambda = 10. .. image:: ../images/chapter10/fig_wiener_filter_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_wiener_filter.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_wiener_filter.py :lines: 15- .. raw:: html
:download:`[download source: fig_wiener_filter.py] ` .. raw:: html