Note
Click here to download the full example code
Wigner-Ville Distribution of a ChirpΒΆ
Construct a chirp signal and visualize its Wigner-Ville distribution.
Figure 1.3 from the tutorial.
from tftb.generators import fmlin
from tftb.processing.cohen import WignerVilleDistribution
n_points = 128
fmin, fmax = 0.0, 0.5
signal, _ = fmlin(n_points, fmin, fmax)
# Wigner-Ville distribution of the chirp.
wvd = WignerVilleDistribution(signal)
wvd.run()
wvd.plot(kind='contour', extent=[0, n_points, fmin, fmax])
Total running time of the script: ( 0 minutes 0.201 seconds)