.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_4_1_3_chirps_wvd.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_3_chirps_wvd.py: ========================================================= Wigner-Ville Distribution of Chirps with Different Slopes ========================================================= This example demonstrates the Wigner-Ville distribution of a signal composed of two chirps with Gaussian amplitude modulation but havind linear frequency modulations with different slopes. Note that the AF interference terms are located away from the origin. We can see the two distint signal terms, but there is some interference around the middle. Figure 4.12 from the tutorial. .. GENERATED FROM PYTHON SOURCE LINES 22-35 .. image-sg:: /auto_examples/images/sphx_glr_plot_4_1_3_chirps_wvd_001.png :alt: WIGNER-VILLE, Signal in time :srcset: /auto_examples/images/sphx_glr_plot_4_1_3_chirps_wvd_001.png :class: sphx-glr-single-img .. code-block:: default from tftb.generators import fmlin, amgauss from tftb.processing import WignerVilleDistribution import numpy as np n_points = 64 sig1 = fmlin(n_points, 0.2, 0.5)[0] * amgauss(n_points) sig2 = fmlin(n_points, 0.3, 0)[0] * amgauss(n_points) sig = np.hstack((sig1, sig2)) tfr = WignerVilleDistribution(sig) tfr.run() tfr.plot(kind='contour', show_tf=True) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.251 seconds) .. _sphx_glr_download_auto_examples_plot_4_1_3_chirps_wvd.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_3_chirps_wvd.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_4_1_3_chirps_wvd.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_