HaarWavelet
✖
HaarWavelet
Details

- HaarWavelet defines a family of orthonormal wavelets.
- The scaling function (
) and wavelet function (
) have compact support lengths of 1. They have 1 vanishing moment and are symmetric.
- The scaling function (
) is given by
. »
- The wavelet function (
) is given by
. »
- HaarWavelet can be used with such functions as DiscreteWaveletTransform, WaveletPhi, etc.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases

https://wolfram.com/xid/0e5dn5ea4bb5py-4lu6z4


https://wolfram.com/xid/0e5dn5ea4bb5py-kcilqx


https://wolfram.com/xid/0e5dn5ea4bb5py-b0xj5n


https://wolfram.com/xid/0e5dn5ea4bb5py-exatgm


https://wolfram.com/xid/0e5dn5ea4bb5py-bwbc06

Scope (10)Survey of the scope of standard use cases
Basic Uses (4)
Compute primal lowpass filter coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-knpxcc

Primal highpass filter coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-fx28gt


https://wolfram.com/xid/0e5dn5ea4bb5py-nxqmse


https://wolfram.com/xid/0e5dn5ea4bb5py-k9eeea

Generate function to compute lifting wavelet transform:

https://wolfram.com/xid/0e5dn5ea4bb5py-nfjqzn


https://wolfram.com/xid/0e5dn5ea4bb5py-ol7ejo


https://wolfram.com/xid/0e5dn5ea4bb5py-7bq5gu

Wavelet Transforms (5)
Compute a DiscreteWaveletTransform:

https://wolfram.com/xid/0e5dn5ea4bb5py-t8skl0

https://wolfram.com/xid/0e5dn5ea4bb5py-8smgf7


https://wolfram.com/xid/0e5dn5ea4bb5py-59wiq3

View the tree of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-td6tmt

Get the dimensions of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-mrjnjd

Plot the wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-w7te5

HaarWavelet can be used to perform a DiscreteWaveletPacketTransform:

https://wolfram.com/xid/0e5dn5ea4bb5py-3wocue

https://wolfram.com/xid/0e5dn5ea4bb5py-22i9c

View the tree of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-nwhfbi

Get the dimensions of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-wuwmcl

Plot the wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-15wf00

HaarWavelet can be used to perform a StationaryWaveletTransform:

https://wolfram.com/xid/0e5dn5ea4bb5py-h4s71h

https://wolfram.com/xid/0e5dn5ea4bb5py-lgbd1m
View the tree of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-jbb9sz

Get the dimensions of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-msff83

Plot the wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-yakm1p

HaarWavelet can be used to perform a StationaryWaveletPacketTransform:

https://wolfram.com/xid/0e5dn5ea4bb5py-gbl37f

https://wolfram.com/xid/0e5dn5ea4bb5py-4fxpz9
View the tree of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-9rgpx

Get the dimensions of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-ngfrzh

Plot the wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-q5dqbp

HaarWavelet can be used to perform a LiftingWaveletTransform:

https://wolfram.com/xid/0e5dn5ea4bb5py-4t2boe

https://wolfram.com/xid/0e5dn5ea4bb5py-6vbut6
View the tree of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-xwj8z0

Get the dimensions of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-56ffkm

Plot the wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-vyacdo

Applications (4)Sample problems that can be solved with this function
Approximate a function using Haar wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-0yl9y
Perform a LiftingWaveletTransform:

https://wolfram.com/xid/0e5dn5ea4bb5py-6b212t
Approximate original data by keeping largest coefficients and thresholding everything else:

https://wolfram.com/xid/0e5dn5ea4bb5py-btzo2q
Compare the different approximations:

https://wolfram.com/xid/0e5dn5ea4bb5py-j4qkd4

Compute the multiresolution representation of a signal containing an impulse:

https://wolfram.com/xid/0e5dn5ea4bb5py-j91b58

https://wolfram.com/xid/0e5dn5ea4bb5py-87cm7i


https://wolfram.com/xid/0e5dn5ea4bb5py-3mqwfq


https://wolfram.com/xid/0e5dn5ea4bb5py-zg56ve

Compare the cumulative energy in a signal and its wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-vo8pov

https://wolfram.com/xid/0e5dn5ea4bb5py-p7milv

Compute the ordered cumulative energy in the signal:

https://wolfram.com/xid/0e5dn5ea4bb5py-d0i4sz

https://wolfram.com/xid/0e5dn5ea4bb5py-hqrz4

The energy in the signal is captured by relatively few wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-7htmqa

https://wolfram.com/xid/0e5dn5ea4bb5py-dfvj8p

https://wolfram.com/xid/0e5dn5ea4bb5py-ck6x5d

Compare range and distribution of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-h55y8c

https://wolfram.com/xid/0e5dn5ea4bb5py-ghrnki


https://wolfram.com/xid/0e5dn5ea4bb5py-tkqfx9
Plot distribution of wavelet coefficients:

https://wolfram.com/xid/0e5dn5ea4bb5py-35y5sq

Compare with wavelet coefficients plotted along a common axis:

https://wolfram.com/xid/0e5dn5ea4bb5py-eq9eqa

Properties & Relations (15)Properties of the function, and connections to other functions
DaubechiesWavelet[1] is equivalent to HaarWavelet:

https://wolfram.com/xid/0e5dn5ea4bb5py-4rcqes

Lowpass filter coefficients sum to unity; :

https://wolfram.com/xid/0e5dn5ea4bb5py-v1t5fi

Highpass filter coefficients sum to zero; :

https://wolfram.com/xid/0e5dn5ea4bb5py-jrlqqz

Scaling function integrates to unity; :

https://wolfram.com/xid/0e5dn5ea4bb5py-f8fecv


https://wolfram.com/xid/0e5dn5ea4bb5py-cckg8j

Haar scaling function is orthogonal to its shift; :

https://wolfram.com/xid/0e5dn5ea4bb5py-d2hgbi


https://wolfram.com/xid/0e5dn5ea4bb5py-e4awrb

Wavelet function integrates to zero; :

https://wolfram.com/xid/0e5dn5ea4bb5py-wzkw5n

Haar wavelet function is orthogonal to its shift; :

https://wolfram.com/xid/0e5dn5ea4bb5py-qjgh2r


https://wolfram.com/xid/0e5dn5ea4bb5py-bjw2nh

Wavelet function is orthogonal to the scaling function at the same scale; :

https://wolfram.com/xid/0e5dn5ea4bb5py-4ds4zb

The lowpass and highpass filter coefficients are orthogonal; :

https://wolfram.com/xid/0e5dn5ea4bb5py-dtuka7

HaarWavelet has one vanishing moment; :

https://wolfram.com/xid/0e5dn5ea4bb5py-ewlfu

This means constant signals are fully represented in the scaling functions part ({0}):

https://wolfram.com/xid/0e5dn5ea4bb5py-i34fvs

https://wolfram.com/xid/0e5dn5ea4bb5py-fxiicw

Linear or higher-order signals are not:

https://wolfram.com/xid/0e5dn5ea4bb5py-bspdch


https://wolfram.com/xid/0e5dn5ea4bb5py-bpn9vr

satisfies the recursion equation
:

https://wolfram.com/xid/0e5dn5ea4bb5py-c2rr39

https://wolfram.com/xid/0e5dn5ea4bb5py-mqv10

Symbolically verify recursion:

https://wolfram.com/xid/0e5dn5ea4bb5py-7ivds

Plot the components and the sum of the recursion:

https://wolfram.com/xid/0e5dn5ea4bb5py-8qecs6

https://wolfram.com/xid/0e5dn5ea4bb5py-veo0fu

satisfies the recursion equation
:

https://wolfram.com/xid/0e5dn5ea4bb5py-x5yvb8

https://wolfram.com/xid/0e5dn5ea4bb5py-tzkax7

Plot the components and the sum of the recursion:

https://wolfram.com/xid/0e5dn5ea4bb5py-2q01rv

https://wolfram.com/xid/0e5dn5ea4bb5py-dbsr0m

Frequency response for is given by
:

https://wolfram.com/xid/0e5dn5ea4bb5py-32hv7n
The filter is a lowpass filter:

https://wolfram.com/xid/0e5dn5ea4bb5py-s9xm5z

Fourier transform of is given by
:

https://wolfram.com/xid/0e5dn5ea4bb5py-idptzz

https://wolfram.com/xid/0e5dn5ea4bb5py-z5jdlu

https://wolfram.com/xid/0e5dn5ea4bb5py-u775oz

Frequency response for is given by
:

https://wolfram.com/xid/0e5dn5ea4bb5py-fujnuf
The filter is a highpass filter:

https://wolfram.com/xid/0e5dn5ea4bb5py-in7lsd

Fourier transform of is given by
:

https://wolfram.com/xid/0e5dn5ea4bb5py-4ndhmw

https://wolfram.com/xid/0e5dn5ea4bb5py-8z0zd4

https://wolfram.com/xid/0e5dn5ea4bb5py-z9z0hq

https://wolfram.com/xid/0e5dn5ea4bb5py-izy05e

Neat Examples (2)Surprising or curious use cases
Plot translates and dilations of scaling function:

https://wolfram.com/xid/0e5dn5ea4bb5py-yz9dxl

https://wolfram.com/xid/0e5dn5ea4bb5py-evsjio


https://wolfram.com/xid/0e5dn5ea4bb5py-p5xgws

Plot translates and dilations of wavelet function:

https://wolfram.com/xid/0e5dn5ea4bb5py-iu0uje

https://wolfram.com/xid/0e5dn5ea4bb5py-b9ooxs


https://wolfram.com/xid/0e5dn5ea4bb5py-hts69i

Wolfram Research (2010), HaarWavelet, Wolfram Language function, https://reference.wolfram.com/language/ref/HaarWavelet.html.
Text
Wolfram Research (2010), HaarWavelet, Wolfram Language function, https://reference.wolfram.com/language/ref/HaarWavelet.html.
Wolfram Research (2010), HaarWavelet, Wolfram Language function, https://reference.wolfram.com/language/ref/HaarWavelet.html.
CMS
Wolfram Language. 2010. "HaarWavelet." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HaarWavelet.html.
Wolfram Language. 2010. "HaarWavelet." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HaarWavelet.html.
APA
Wolfram Language. (2010). HaarWavelet. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HaarWavelet.html
Wolfram Language. (2010). HaarWavelet. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HaarWavelet.html
BibTeX
@misc{reference.wolfram_2025_haarwavelet, author="Wolfram Research", title="{HaarWavelet}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/HaarWavelet.html}", note=[Accessed: 26-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_haarwavelet, organization={Wolfram Research}, title={HaarWavelet}, year={2010}, url={https://reference.wolfram.com/language/ref/HaarWavelet.html}, note=[Accessed: 26-March-2025
]}