.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_4_1_2_sin_gauss_wv.py: =================================================================== Wigner Ville distribution of a Gaussian Atom and a Complex Sinusoid =================================================================== This example demonstrates the Wigner Ville distribution of a signal composed from a Gaussian atom and a complex sinusoid with constant frequency modulation. Although the representation does isolate the atom and the sinusoid as independent phenomena in the signal, it also produces some interference between them. Figure 4.8 from the tutorial. .. image:: /auto_examples/images/sphx_glr_plot_4_1_2_sin_gauss_wv_001.png :class: sphx-glr-single-img .. code-block:: default from tftb.generators import fmconst, amgauss from tftb.processing import WignerVilleDistribution sig = fmconst(128, 0.15)[0] + amgauss(128) * fmconst(128, 0.4)[0] tfr = WignerVilleDistribution(sig) tfr.run() tfr.plot(show_tf=True, kind='contour') .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.428 seconds) .. _sphx_glr_download_auto_examples_plot_4_1_2_sin_gauss_wv.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_4_1_2_sin_gauss_wv.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_4_1_2_sin_gauss_wv.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_