Wigner-Ville Distribution of Gaussian AtomsΒΆ

This example shows the WV distribution of four Gaussian atoms, each localized at the corner of a rectangle in the time-frequency plane. The distribution does show the four signal terms, as well as six interference terms.

Figure 4.4 from the tutorial.

../_images/sphx_glr_plot_4_1_1_wv_atoms_001.png
import numpy as np
from tftb.generators import atoms
from tftb.processing import WignerVilleDistribution

x = np.array([[32, .15, 20, 1],
             [96, .15, 20, 1],
             [32, .35, 20, 1],
             [96, .35, 20, 1]])
g = atoms(128, x)
spec = WignerVilleDistribution(g)
spec.run()
spec.plot(kind="contour", show_tf=True, scale="log")

Total running time of the script: ( 0 minutes 0.845 seconds)

Gallery generated by Sphinx-Gallery