Estimate the Instantaneous Freuqncy of a ChirpΒΆ

Construct a chirp and estimate its instantaneous frequency.

Figure 2.3 from the tutorial.

Instantaneous frequency law(s)
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.122 seconds)

Gallery generated by Sphinx-Gallery