{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $g \\in L^2(\\R)$ be a nonzero function, the *window*, and let $f \\in L^2(\\R)$ (see [[Lp space|SASP14MA1Z]]).\nThe *short-time Fourier transform* of $f$ with respect to $g$ is the function $V_g f \\colon \\R^2 \\to \\C$,\n$$V_g f(x, \\omega) = \\int_{\\R} f(t) \\, \\overline{g(t - x)} \\, e^{-2\\pi i t \\omega} \\, dt,$$\nfor $x \\in \\R$ (time) and $\\omega \\in \\R$ (frequency).\n\n## Remarks\n\nThe integral converges absolutely, since $f \\cdot \\overline{g(\\cdot - x)}$ is integrable by the Cauchy–Schwarz inequality.\nSo $V_g f(x, \\cdot)$ is the [[Fourier transform|DPVM34ADZV]] of $f \\cdot \\overline{g(\\cdot - x)}$.\nIn inner product form, $V_g f(x, \\omega) = \\ip{f}{M_\\omega T_x g}$, where $T_x g(t) = g(t - x)$ and $M_\\omega g(t) = e^{2\\pi i \\omega t} g(t)$.\nMoyal's formula states $\\norm{V_g f}_{L^2(\\R^2)} = \\norm{f}_2 \\norm{g}_2$.\nThe squared modulus $\\abs{V_g f}^2$ is the *spectrogram*.\nIn engineering texts the variable $\\omega$ often denotes angular frequency, and the kernel is $e^{-i \\omega t}$.\n\nExample: let $f = g = 1_{[0, 1]}$.\nFor $0 \\le x \\le 1$, the product $f \\cdot g(\\cdot - x)$ is the indicator of $[x, 1]$, so $V_g f(x, 0) = 1 - x$.\nFor $\\abs{x} \u003e 1$ the supports are disjoint and $V_g f(x, \\omega) = 0$.\n\nNon-example: with the constant window $g = 1$, which is not in $L^2(\\R)$, the formula gives $\\hat f(\\omega)$ for every $x$.\nIt carries no time information, and this choice is excluded by the definition.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "3DHNP5NEWH",
    "kind": "definition",
    "msc": [
      "42A38",
      "94A12"
    ],
    "name": "Short-time Fourier transform",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Short-time_Fourier_transform"
      }
    ],
    "tag": "PJNV4KR00F",
    "uses": [
      "SASP14MA1Z",
      "DPVM34ADZV",
      "DWJF7ABPR1"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/PJNV4KR00F/",
  "links": [
    {
      "field": "defines",
      "target": "3DHNP5NEWH"
    },
    {
      "field": "uses",
      "target": "SASP14MA1Z"
    },
    {
      "field": "uses",
      "target": "DPVM34ADZV"
    },
    {
      "field": "uses",
      "target": "DWJF7ABPR1"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/PJNV4KR00F.md",
  "msc": [
    "42A38",
    "94A12"
  ],
  "name": "Short-time Fourier transform",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/PJN/PJNV4KR00F.md",
  "status": null,
  "tag": "PJNV4KR00F",
  "uri": "m2://PJNV4KR00F",
  "url": "https://tamnd.github.io/math2/wiki/short-time-fourier-transform-definition/",
  "writing": {
    "tag": "PJNV4KR00F",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
