.. 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_4_1_4_margenau_hill.py: ============================================================ Margenau-Hill Representation of Chirps with Different Slopes ============================================================ This example demonstrates the Margenau-Hill distribution of a signal composed of two chirps with Gaussian amplitude modulation but havind linear frequency modulations with different slopes. This distribution too, like the Wigner-Ville distribution, spearates the signal terms, but produces interferences such that they appear diagonally opposite their corresponding signals. Figure 4.14 from the tutorial. .. image:: /auto_examples/images/sphx_glr_plot_4_1_4_margenau_hill_001.png :class: sphx-glr-single-img .. code-block:: default import numpy as np from tftb.generators import atoms from tftb.processing import MargenauHillDistribution sig = atoms(128, np.array([[32, 0.15, 20, 1], [96, 0.32, 20, 1]])) tfr = MargenauHillDistribution(sig) tfr.run() tfr.plot(show_tf=True, kind='contour', sqmod=False, threshold=0, contour_y=np.linspace(0, 0.5, tfr.tfr.shape[0] / 2)) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.438 seconds) .. _sphx_glr_download_auto_examples_plot_4_1_4_margenau_hill.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_4_1_4_margenau_hill.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_4_1_4_margenau_hill.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_