{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "%matplotlib inline"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "\n# Bertrand Distribution of a Hyperbolic Group Delay Signal\n\nThis example shows the Bertrand distribution of a signal with hyperbolic group\ndelay. The distribution is well localized around the hyperbola, but not\nperfectly. The Bertrand distribution operates only on a part of the frequency\nrange between two bounds $f_{min}$ and $f_{max}$.\n\nFigure 4.21 from the tutorial.\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "from tftb.processing.affine import BertrandDistribution\nfrom tftb.generators import gdpower\n\n\nsig = gdpower(128)[0]\nbert = BertrandDistribution(sig, fmin=0.01, fmax=0.22)\nbert.run()\nbert.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
}