.. 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_4_group_delay.py: ================================= Group Delay Estimation of a Chirp ================================= Constuct a chirp and estimates its `group delay `_. Figure 2.4 from the tutorial. .. image:: /auto_examples/images/sphx_glr_plot_2_4_group_delay_001.png :class: sphx-glr-single-img .. code-block:: default from tftb.generators import fmlin from tftb.processing import group_delay import numpy as np import matplotlib.pyplot as plt signal, _ = fmlin(256) fnorm = np.linspace(0, .5, 10) gd = group_delay(signal, fnorm) plt.plot(gd, fnorm) plt.grid(True) plt.xlim(0, 256) plt.xlabel('Time') plt.ylabel('Normalized Frequency') plt.title('Group Delay Estimation') plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.253 seconds) .. _sphx_glr_download_auto_examples_plot_2_4_group_delay.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_2_4_group_delay.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_2_4_group_delay.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_