{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "%matplotlib inline"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "\n# Biorthonormal Window Function\n\nFigure 3.10 from the tutorial.\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "from tftb.generators import fmlin\nfrom tftb.processing.linear import gabor\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nN1 = 256\nNg = 33\nQ = 1\nsig = fmlin(N1)[0]\nwindow = np.exp(np.log(0.005) * np.linspace(-1, 1, Ng) ** 2)\nwindow = window / np.linalg.norm(window)\ntfr, dgr, h = gabor(sig, 16, Q, window)\nplt.plot(h)\nplt.ylim(top=0.5)\nplt.xlim(right=255)\nplt.title('Biorthonormal Window')\nplt.grid()\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
}