{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Example\n\nFor each integer $N \\ge 1$, Ingrid Daubechies constructed an orthonormal [[wavelet|4PZ35C0GV3]] $\\psi$ from a [[multiresolution analysis|1GHQMBR7DE]].\nIts [[scaling function|YH4BERB952]] $\\varphi$ satisfies a refinement equation $\\varphi(x) = \\sqrt2 \\sum_{k=0}^{2N-1} h_k \\varphi(2x - k)$ with $2N$ real coefficients.\nBoth $\\varphi$ and $\\psi$ have compact support of length $2N - 1$, and $\\psi$ has $N$ [[vanishing moments|7QERXM0C52]].\nFor $N = 1$ this is the Haar wavelet.\n\nThe case $N = 2$ has the filter\n$$h_0 = \\frac{1 + \\sqrt3}{4\\sqrt2}, \\quad h_1 = \\frac{3 + \\sqrt3}{4\\sqrt2}, \\quad h_2 = \\frac{3 - \\sqrt3}{4\\sqrt2}, \\quad h_3 = \\frac{1 - \\sqrt3}{4\\sqrt2}.$$\nCheck of the filter conditions.\nThe sum is $\\frac{8}{4\\sqrt2} = \\sqrt2$, as needed for $\\int \\varphi = 1$.\nThe sum of squares is $\\frac{(4 + 2\\sqrt3) + (12 + 6\\sqrt3) + (12 - 6\\sqrt3) + (4 - 2\\sqrt3)}{32} = 1$.\nAnd $h_0 h_2 + h_1 h_3 = \\frac{(1 + \\sqrt3)(3 - \\sqrt3) + (3 + \\sqrt3)(1 - \\sqrt3)}{32} = \\frac{2\\sqrt3 - 2\\sqrt3}{32} = 0$.\nSo the filter is orthogonal to its shift by $2$, which reflects the orthogonality of the translates $\\varphi(\\cdot - k)$.\n\nThe wavelet is $\\psi(x) = \\sqrt2 \\sum_k g_k \\varphi(2x - k)$ with $g_k = (-1)^k h_{1-k}$, so its coefficients are $g_{-2} = h_3$, $g_{-1} = -h_2$, $g_0 = h_1$, $g_1 = -h_0$.\nCheck of two vanishing moments: $\\sum_k g_k = h_3 - h_2 + h_1 - h_0 = 0$ and $\\sum_k k g_k = -2h_3 + h_2 - h_0 = \\frac{-2 + 2\\sqrt3 + 3 - \\sqrt3 - 1 - \\sqrt3}{4\\sqrt2} = 0$.\nThese two discrete conditions give $\\int \\psi = 0$ and $\\int x \\psi(x) \\, dx = 0$.\nThe scaling function of this case is continuous but not smooth, and it has no closed formula; it is computed from the refinement equation.\n\n## Explanations\n\n### L1 human\n\nDaubechies wavelets are a family of wavelets that live on short intervals and are smoother as the index grows.\nEach one is fixed by a short list of numbers, its filter, and the discrete wavelet transform uses only these numbers.\nThe four numbers above give the simplest one after the Haar wavelet.\nTheir shape looks jagged, almost like a fractal, but they are widely used in signal and image compression.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "instance_of": [
      "4PZ35C0GV3"
    ],
    "kind": "example",
    "msc": [
      "42C40",
      "65T60"
    ],
    "name": "Daubechies wavelet",
    "same_as": {
      "wikidata": "Q1172774",
      "wikipedia": "Daubechies wavelet"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Daubechies_wavelet"
      }
    ],
    "tag": "90V8S5CXE6",
    "uses": [
      "1GHQMBR7DE",
      "YH4BERB952",
      "7QERXM0C52"
    ]
  },
  "kind": "example",
  "link": "https://tamnd.github.io/math2/node/90V8S5CXE6/",
  "links": [
    {
      "field": "instance_of",
      "target": "4PZ35C0GV3"
    },
    {
      "field": "uses",
      "target": "1GHQMBR7DE"
    },
    {
      "field": "uses",
      "target": "YH4BERB952"
    },
    {
      "field": "uses",
      "target": "7QERXM0C52"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/90V8S5CXE6.md",
  "msc": [
    "42C40",
    "65T60"
  ],
  "name": "Daubechies wavelet",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/90V/90V8S5CXE6.md",
  "status": null,
  "tag": "90V8S5CXE6",
  "uri": "m2://90V8S5CXE6",
  "url": "https://tamnd.github.io/math2/wiki/daubechies-wavelet/",
  "writing": {
    "tag": "90V8S5CXE6",
    "kind": "example",
    "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
      }
    ]
  }
}
