.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_2_3_instantaneous_frequency.py: ============================================== Estimate the Instantaneous Freuqncy of a Chirp ============================================== Construct a chirp and estimate its `instantaneous frequency `_. Figure 2.3 from the tutorial. .. image:: /auto_examples/images/sphx_glr_plot_2_3_instantaneous_frequency_001.png :class: sphx-glr-single-img .. code-block:: default 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) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.188 seconds) .. _sphx_glr_download_auto_examples_plot_2_3_instantaneous_frequency.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_2_3_instantaneous_frequency.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_2_3_instantaneous_frequency.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_