Estimate the Instantaneous Freuqncy of a ChirpΒΆ

Construct a chirp and estimate its instantaneous frequency.

Figure 2.3 from the tutorial.

../_images/sphx_glr_plot_2_3_instantaneous_frequency_001.png
from tftb.generators import fmlin
from tftb.processing import plotifl, inst_freq
# TODO: There doesn't have to be something called `plotifl`. Put this into a
# separate visualization module.
import numpy as np


signal, _ = fmlin(256)
time_samples = np.arange(3, 257)
ifr = inst_freq(signal)[0]
plotifl(time_samples, ifr)

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

Gallery generated by Sphinx-Gallery