{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "%matplotlib inline"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "\n# D-Flandrin Distribution of a Hyperbolic Group Delay Signal\n\nThis example shows the D-Flandrin distribution of a signal having hyperbolic\ngroup delay. This is the only type of distribution that almost perfectly\nlocalizes signals having a group delay in $1 / \\sqrt{\\nu}$\n\nFigure 4.22 from the tutorial.\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "from tftb.processing import DFlandrinDistribution\nfrom tftb.generators import gdpower\n\nsig = gdpower(128, 1.0 / 2)[0]\nspec = DFlandrinDistribution(sig, fmin=0.01, fmax=0.22, n_voices=128)\nspec.run()\nspec.plot()"
      ]
    }
  ],
  "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
}