.. 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_1_wv_analytic_signal.py: ==================================================== Wigner Ville Distribution of Analytic Gaussian Atoms ==================================================== This example shows the WVD of and analytic Gaussian atom. As seen in Figure 4.6, the WVD of a real valued signal may present interference terms and spectral aliasing. One of the ways to fix this is to use an analytic signal, which divides the spectral domain into two parts: real and imaginary. Thus, the number of interference terms is also halved. Secondly, analytic signals have no negative components, so the terms present in the negative half plane also vanish. Figure 4.7 from the tutorial. .. image:: /auto_examples/images/sphx_glr_plot_4_1_1_wv_analytic_signal_001.png :class: sphx-glr-single-img .. code-block:: default import numpy as np from tftb.generators import atoms from tftb.processing import WignerVilleDistribution x = np.array([[32, .15, 20, 1], [96, .32, 20, 1]]) g = atoms(128, x) spec = WignerVilleDistribution(g) spec.run() spec.plot(show_tf=True, kind="contour", scale="log") .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.484 seconds) .. _sphx_glr_download_auto_examples_plot_4_1_1_wv_analytic_signal.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_4_1_1_wv_analytic_signal.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_4_1_1_wv_analytic_signal.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_