.. 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_1_3_1_noisy_chirp_wv.py: ========================================== Wigner-Ville Distribution of a Noisy Chirp ========================================== Generate a noisy chirp and visualize its Wigner-Ville spectrum. Figure 1.6 from the tutorial. .. image:: /auto_examples/images/sphx_glr_plot_1_3_1_noisy_chirp_wv_001.png :class: sphx-glr-single-img .. code-block:: default from tftb.generators import fmlin, sigmerge, noisecg from tftb.processing.cohen import WignerVilleDistribution # Generate a chirp signal n_points = 128 fmin, fmax = 0.0, 0.5 signal, _ = fmlin(n_points, fmin, fmax) # Noisy chirp noisy_signal = sigmerge(signal, noisecg(128), 0) # Wigner-Ville spectrum of noisy chirp. wvd = WignerVilleDistribution(noisy_signal) wvd.run() wvd.plot(kind='contour') .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.270 seconds) .. _sphx_glr_download_auto_examples_plot_1_3_1_noisy_chirp_wv.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_1_3_1_noisy_chirp_wv.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_1_3_1_noisy_chirp_wv.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_