{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "%matplotlib inline"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "\n# Wideband Ambiguity Function of an Altes Signal\n\nFor wideband signals, the narrow band ambiguity function is not appropriate for\nwideband signals. So we consider a wide band ambiguity function. This function\nis equivalent to the wavelet transform of a signal whose mother wavelet is the\nsignal itself.\n\nFigure 4.25 from the tutorial.\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "from tftb.generators import altes\nfrom tftb.processing.ambiguity import wide_band\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nsignal = altes(128, 0.1, 0.45)\nwaf, tau, theta = wide_band(signal, 0.1, 0.35, 64)\nplt.contour(tau, theta, np.abs(waf) ** 2)\nplt.xlabel(\"Delay\")\nplt.ylabel(\"Log(Scale)\")\nplt.title(\"Wide Band Ambiguity Function\")\nplt.show()"
      ]
    }
  ],
  "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
}