{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "%matplotlib inline"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "\n# Wigner-Ville Distribution of a Doppler Signal\n\nThis example shows the Wigner-Ville distribution of a Doppler signal. The\nsignal steadily rises and falls, but there are many interference terms present\nin the time-friequency plane, due to the bilinearity of the signal.\n\nFigure 4.2 from the tutorial.\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "from tftb.generators import doppler\nfrom tftb.processing import WignerVilleDistribution\n\nfm, am, iflaw = doppler(256, 50.0, 13.0, 10.0, 200.0)\nsig = am * fm\ndist = WignerVilleDistribution(sig)\ntfr, times, freqs = dist.run()\ndist.plot(show_tf=True, kind=\"contour\", scale=\"log\")"
      ]
    }
  ],
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "name": "python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.7.9"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}