.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_4_1_1_wv_real_signal.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_1_wv_real_signal.py: ================================================================================ Sampling Effects on the Wigner-Ville Distribution of a Real Valued Gaussian Atom ================================================================================ This example shows the Wigner-Ville distribution of a real valued Gaussian atom. If a signal is sampled at the Nyquist rate, the WVD is affected by spectral aliasing and many additional interferences. To fix this, either the signal may be oversampled, or an analytical signal may be used. Figure 4.6 from the tutorial. .. GENERATED FROM PYTHON SOURCE LINES 21-32 .. image-sg:: /auto_examples/images/sphx_glr_plot_4_1_1_wv_real_signal_001.png :alt: WIGNER-VILLE, Signal in time :srcset: /auto_examples/images/sphx_glr_plot_4_1_1_wv_real_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(np.real(g)) spec.run() spec.plot(kind="contour", show_tf=True, scale="log") .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.398 seconds) .. _sphx_glr_download_auto_examples_plot_4_1_1_wv_real_signal.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_1_wv_real_signal.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_4_1_1_wv_real_signal.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_