.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_4_1_2_sin_gauss_wv.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. 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. .. GENERATED FROM PYTHON SOURCE LINES 22-30 .. image-sg:: /auto_examples/images/sphx_glr_plot_4_1_2_sin_gauss_wv_001.png :alt: WIGNER-VILLE, Signal in time :srcset: /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.255 seconds) .. _sphx_glr_download_auto_examples_plot_4_1_2_sin_gauss_wv.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_4_1_2_sin_gauss_wv.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_4_1_2_sin_gauss_wv.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_