Pseudo-Wigner-Ville Distribution of a Gaussian Atom and a Complex SinusoidΒΆ

This example demonstrates the pseudo Wigner Ville distribution of a signal composed from a Gaussian atom and a complex sinusoid with constant frequency modulation. Note that the frequency resolution is relatively worse than that of the Wigner-Ville representation, and the interferences have not been resolved properly.

Figure 4.9 from the tutorial.

../_images/sphx_glr_plot_4_1_2_sin_gauss_pwv_001.png
from tftb.generators import fmconst, amgauss
from tftb.processing import PseudoWignerVilleDistribution
import numpy as np

t = np.linspace(0, 1, 128)
sig = fmconst(128, 0.15)[0] + amgauss(128) * fmconst(128, 0.4)[0]
tfr = PseudoWignerVilleDistribution(sig, timestamps=t)
tfr.run()
tfr.plot(show_tf=True, kind="contour")

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

Gallery generated by Sphinx-Gallery