.. 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_pwv.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_pwv.py: ========================================================================== Pseudo-Wigner-Ville Distribution of a Gaussian Atom and a Complex Sinusoid ========================================================================== This example demonstrates the pseudo Wigner Ville distribution of a signal composed from a Gaussian atom and a complex sinusoid with constant frequency modulation. Note that the frequency resolution is relatively worse than that of the Wigner-Ville representation, and the interferences have not been resolved properly. Figure 4.9 from the tutorial. .. GENERATED FROM PYTHON SOURCE LINES 22-32 .. image-sg:: /auto_examples/images/sphx_glr_plot_4_1_2_sin_gauss_pwv_001.png :alt: PSEUDO WINGER-VILLE, Signal in time :srcset: /auto_examples/images/sphx_glr_plot_4_1_2_sin_gauss_pwv_001.png :class: sphx-glr-single-img .. code-block:: default from tftb.generators import fmconst, amgauss from tftb.processing import PseudoWignerVilleDistribution import numpy as np t = np.linspace(0, 1, 128) sig = fmconst(128, 0.15)[0] + amgauss(128) * fmconst(128, 0.4)[0] tfr = PseudoWignerVilleDistribution(sig, timestamps=t) tfr.run() tfr.plot(show_tf=True, kind="contour") .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.256 seconds) .. _sphx_glr_download_auto_examples_plot_4_1_2_sin_gauss_pwv.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_pwv.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_4_1_2_sin_gauss_pwv.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_