In mathematics, theHaar wavelet is a sequence of rescaled "square-shaped" functions which together form awavelet family or basis. Wavelet analysis is similar toFourier analysis in that it allows a target function over an interval to be represented in terms of anorthonormal basis. The Haar sequence is now recognised as the first known wavelet basis and is extensively used as a teaching example.

TheHaar sequence was proposed in 1909 byAlfréd Haar.[1] Haar used these functions to give an example of an orthonormal system for the space ofsquare-integrable functions on theunit interval [0, 1]. The study of wavelets, and even the term "wavelet", did not come until much later. As a special case of theDaubechies wavelet, the Haar wavelet is also known asDb1.
The Haar wavelet is also the simplest possible wavelet. The technical disadvantage of the Haar wavelet is that it is notcontinuous, and therefore notdifferentiable. This property can, however, be an advantage for the analysis of signals with sudden transitions (discrete signals), such as monitoring of tool failure in machines.[2]
The Haar wavelet's mother wavelet function can be described as
Itsscaling function can be described as
Haar functions and Haar system
editFor every pairn,k of integers in , theHaar functionψn,k is defined on thereal line by the formula
This function is supported on theright-open intervalIn,k =[k2−n, (k+1)2−n),i.e., itvanishes outside that interval. It has integral 0 and norm 1 in theHilbert space L2( ),
The Haar functions are pairwiseorthogonal,
where represents theKronecker delta. Here is the reason for orthogonality: when the two supporting intervals and are not equal, then they are either disjoint, or else the smaller of the two supports, say , is contained in the lower or in the upper half of the other interval, on which the function remains constant. It follows in this case that the product of these two Haar functions is a multiple of the first Haar function, hence the product has integral 0.
TheHaar system on the real line is the set of functions
It iscomplete inL2( ):The Haar system on the line is an orthonormal basis inL2( ).
Haar wavelet properties
editThe Haar wavelet has several notable properties:
- Any continuous real function with compact support can be approximated uniformly bylinear combinations of and their shifted functions. This extends to those function spaces where any function therein can be approximated by continuous functions.
- Any continuous real function on [0, 1] can be approximated uniformly on [0, 1] by linear combinations of the constant function 1, and their shifted functions.[3]
- Orthogonality in the form
- Wavelet/scaling functions with different scalen have a functional relationship:[4] since
If
and
then
Haar system on the unit interval and related systems
editIn this section, the discussion is restricted to theunit interval [0, 1] and to the Haar functions that are supported on [0, 1]. The system of functions considered by Haar in 1910,[5]called theHaar system on [0, 1] in this article, consists of the subset of Haar wavelets defined as
with the addition of the constant function1 on [0, 1].
InHilbert space terms, this Haar system on [0, 1] is a complete orthonormal system,i.e., anorthonormal basis, for the spaceL2([0, 1]) of square integrable functions on the unit interval.
The Haar system on [0, 1] —with the constant function1 as first element, followed with the Haar functions ordered according to thelexicographic ordering of couples(n,k)— is further amonotoneSchauder basis for the spaceLp([0, 1]) when1 ≤p < ∞.[6] This basis isunconditional when1 <p < ∞.[7]
There is a relatedRademacher system consisting of sums of Haar functions,
Notice that |rn(t)| = 1 on [0, 1). This is an orthonormal system but it is not complete.[8][9]In the language ofprobability theory, the Rademacher sequence is an instance of a sequence ofindependentBernoullirandom variables withmean 0. TheKhintchine inequality expresses the fact that in all the spacesLp([0, 1]),1 ≤p < ∞, the Rademacher sequence isequivalent to the unit vector basis in ℓ2.[10] In particular, theclosed linear span of the Rademacher sequence inLp([0, 1]),1 ≤p < ∞, isisomorphic to ℓ2.
The Faber–Schauder system
editTheFaber–Schauder system[11][12][13] is the family of continuous functions on [0, 1] consisting of the constant function 1, and of multiples ofindefinite integrals of the functions in the Haar system on [0, 1], chosen to have norm 1 in themaximum norm. This system begins withs0 = 1, thens1(t) =t is the indefinite integral vanishing at 0 of the function 1, first element of the Haar system on [0, 1]. Next, for every integern ≥ 0, functionssn,k are defined by the formula
These functionssn,k are continuous,piecewise linear, supported by the intervalIn,k that also supports ψn,k. The functionsn,k is equal to 1 at the midpointxn,k of the interval In,k, linear on both halves of that interval. It takes values between 0 and 1 everywhere.
The Faber–Schauder system is aSchauder basis for the spaceC([0, 1]) of continuous functions on [0, 1].[6] For every f inC([0, 1]), the partial sum
of theseries expansion off in the Faber–Schauder system is the continuous piecewise linear function that agrees with f at the2n + 1 pointsk2−n, where 0 ≤k ≤ 2n. Next, the formula
gives a way to compute the expansion off step by step. Sincef isuniformly continuous, the sequence {fn} converges uniformly tof. It follows that the Faber–Schauder series expansion off converges inC([0, 1]), and the sum of this series is equal to f.
The Franklin system
editTheFranklin system is obtained from the Faber–Schauder system by theGram–Schmidt orthonormalization procedure.[14][15]Since the Franklin system has the samelinear span as that of the Faber–Schauder system, this span is dense inC([0, 1]), hence inL2([0, 1]). The Franklin system is therefore an orthonormal basis forL2([0, 1]), consisting of continuous piecewise linear functions. P. Franklin proved in 1928 that this system is a Schauder basis forC([0, 1]).[16] The Franklin system is also an unconditional Schauder basis for the spaceLp([0, 1]) when1 <p < ∞.[17]The Franklin system provides a Schauder basis in thedisk algebraA(D).[17]This was proved in 1974 by Bočkarev, after the existence of a basis for the disk algebra had remained open for more than forty years.[18]
Bočkarev's construction of a Schauder basis inA(D) goes as follows: let f be a complex valuedLipschitz function on [0, π]; then f is the sum of acosine series withabsolutely summable coefficients. Let T(f) be the element ofA(D) defined by the complexpower series with the same coefficients,
Bočkarev's basis forA(D) is formed by the images under T of the functions in the Franklin system on [0, π]. Bočkarev's equivalent description for the mapping T starts by extendingf to aneven Lipschitz function g1 on [−π, π], identified with a Lipschitz function on theunit circle T. Next, letg2 be theconjugate function of g1, and defineT(f) to be the function in A(D) whose value on the boundaryT of D is equal to g1 + ig2.
When dealing with 1-periodic continuous functions, or rather with continuous functionsf on [0, 1] such thatf(0) =f(1), one removes the functions1(t) =t from the Faber–Schauder system, in order to obtain theperiodic Faber–Schauder system. Theperiodic Franklin system is obtained by orthonormalization from the periodic Faber–-Schauder system.[19]One can prove Bočkarev's result onA(D) by proving that the periodic Franklin system on [0, 2π] is a basis for a Banach spaceAr isomorphic toA(D).[19] The spaceAr consists of complex continuous functions on the unit circleT whoseconjugate function is also continuous.
Haar matrix
editThe 2×2 Haar matrix that is associated with the Haar wavelet is
Using thediscrete wavelet transform, one can transform any sequence of even length into a sequence of two-component-vectors . If one right-multiplies each vector with the matrix , one gets the result of one stage of the fast Haar-wavelet transform. Usually one separates the sequencess andd and continues with transforming the sequences. Sequences is often referred to as theaverages part, whereasd is known as thedetails part.[20]
If one has a sequence of length a multiple of four, one can build blocks of 4 elements and transform them in a similar manner with the 4×4 Haar matrix
which combines two stages of the fast Haar-wavelet transform.
Compare with aWalsh matrix, which is a non-localized 1/–1 matrix.
Generally, the 2N×2N Haar matrix can be derived by the following equation.
- where and is theKronecker product.
TheKronecker product of , where is an m×n matrix and is a p×q matrix, is expressed as
An un-normalized 8-point Haar matrix is shown below
Note that, the above matrix is an un-normalized Haar matrix. The Haar matrix required by the Haar transform should be normalized.
From the definition of the Haar matrix , one can observe that, unlike theFourier transform, has only real elements (i.e., 1, -1 or 0) and is non-symmetric.
Take the 8-point Haar matrix as an example. The first row of measures the average value, and the second row of measures a low frequency component of the input vector. The next two rows are sensitive to the first and second half of the input vector respectively, which corresponds to moderate frequency components. The remaining four rows are sensitive to the four section of the input vector, which corresponds to high frequency components.[21]
Haar transform
editTheHaar transform is the simplest of thewavelet transforms. This transform cross-multiplies a function against the Haar wavelet with various shifts and stretches, like the Fourier transform cross-multiplies a function against a sine wave with two phases and many stretches.[22][clarification needed]
Introduction
editThe Haar transform is one of the oldest transform functions, proposed in 1910 by the Hungarian mathematicianAlfréd Haar. It is found effective in applications such as signal and image compression in electrical and computer engineering as it provides a simple and computationally efficient approach for analysing the local aspects of a signal.
The Haar transform is derived from the Haar matrix. An example of a 4×4 Haar transformation matrix is shown below.
The Haar transform can be thought of as a sampling process in which rows of the transformation matrix act as samples of finer and finer resolution.
Compare with theWalsh transform, which is also 1/–1, but is non-localized.
Property
editThe Haar transform has the following properties
- No need for multiplications. It requires only additions and there are many elements with zero value in the Haar matrix, so the computation time is short. It is faster thanWalsh transform, whose matrix is composed of +1 and −1.
- Input and output length are the same. However, the length should be a power of 2, i.e. .
- It can be used to analyse the localized feature of signals. Due to theorthogonal property of the Haar function, the frequency components of input signal can be analyzed.
Haar transform and Inverse Haar transform
editThe Haar transformyn of an n-input functionxn is
The Haar transform matrix is real and orthogonal. Thus, the inverse Haar transform can be derived by the following equations.
- where is the identity matrix. For example, when n = 4
Thus, the inverse Haar transform is
Example
editThe Haar transform coefficients of a n=4-point signal can be found as
The input signal can then be perfectly reconstructed by the inverse Haar transform
See also
editNotes
edit- ^see p. 361 inHaar (1910).
- ^Lee, B.; Tarng, Y. S. (1999). "Application of the discrete wavelet transform to the monitoring of tool failure in end milling using the spindle motor current".International Journal of Advanced Manufacturing Technology.15 (4):238–243.doi:10.1007/s001700050062.S2CID 109908427.
- ^As opposed to the preceding statement, this fact is not obvious: see p. 363 inHaar (1910).
- ^Vidakovic, Brani (2010).Statistical Modeling by Wavelets. Wiley Series in Probability and Statistics (2 ed.). pp. 60, 63.doi:10.1002/9780470317020.ISBN 9780470317020.
- ^p. 361 inHaar (1910)
- ^absee p. 3 inJ. Lindenstrauss, L. Tzafriri, (1977), "Classical Banach Spaces I, Sequence Spaces", Ergebnisse der Mathematik und ihrer Grenzgebiete92, Berlin: Springer-Verlag,ISBN 3-540-08072-4.
- ^The result is due toR. E. Paley,A remarkable series of orthogonal functions (I), Proc. London Math. Soc.34 (1931) pp. 241-264. See also p. 155 in J. Lindenstrauss, L. Tzafriri, (1979), "Classical Banach spaces II, Function spaces". Ergebnisse der Mathematik und ihrer Grenzgebiete97, Berlin: Springer-Verlag,ISBN 3-540-08888-1.
- ^"Orthogonal system",Encyclopedia of Mathematics,EMS Press, 2001 [1994]
- ^Walter, Gilbert G.; Shen, Xiaoping (2001).Wavelets and Other Orthogonal Systems. Boca Raton: Chapman.ISBN 1-58488-227-1.
- ^see for example p. 66 inJ. Lindenstrauss, L. Tzafriri, (1977), "Classical Banach Spaces I, Sequence Spaces", Ergebnisse der Mathematik und ihrer Grenzgebiete92, Berlin: Springer-Verlag,ISBN 3-540-08072-4.
- ^Faber, Georg (1910), "Über die Orthogonalfunktionen des Herrn Haar",Deutsche Math.-Ver (in German)19: 104–112.ISSN 0012-0456;http://www-gdz.sub.uni-goettingen.de/cgi-bin/digbib.cgi?PPN37721857X ;http://resolver.sub.uni-goettingen.de/purl?GDZPPN002122553
- ^Schauder, Juliusz (1928), "Eine Eigenschaft des Haarschen Orthogonalsystems",Mathematische Zeitschrift28: 317–320.
- ^Golubov, B.I. (2001) [1994],"Faber–Schauder system",Encyclopedia of Mathematics,EMS Press
- ^see Z. Ciesielski,Properties of the orthonormal Franklin system. Studia Math. 23 1963 141–157.
- ^Franklin system. B.I. Golubov (originator), Encyclopedia of Mathematics. URL:http://www.encyclopediaofmath.org/index.php?title=Franklin_system&oldid=16655
- ^Philip Franklin,A set of continuous orthogonal functions, Math. Ann. 100 (1928), 522-529.doi:10.1007/BF01448860
- ^abS. V. Bočkarev,Existence of a basis in the space of functions analytic in the disc, and some properties of Franklin's system. Mat. Sb.95 (1974), 3–18 (Russian). Translated in Math. USSR-Sb.24 (1974), 1–16.
- ^The question appears p. 238, §3 in Banach's book,Banach, Stefan (1932),Théorie des opérations linéaires, Monografie Matematyczne, vol. 1, Warszawa: Subwencji Funduszu Kultury Narodowej,Zbl 0005.20901. The disk algebraA(D) appears as Example 10, p. 12 in Banach's book.
- ^abSee p. 161, III.D.20 and p. 192, III.E.17 inWojtaszczyk, Przemysław (1991),Banach spaces for analysts, Cambridge Studies in Advanced Mathematics, vol. 25, Cambridge: Cambridge University Press, pp. xiv+382,ISBN 0-521-35618-0
- ^Ruch, David K.; Van Fleet, Patrick J. (2009).Wavelet Theory: An Elementary Approach with Applications. John Wiley & Sons.ISBN 978-0-470-38840-2.
- ^"haar". Fourier.eng.hmc.edu. 30 October 2013. Archived fromthe original on 21 August 2012. Retrieved23 November 2013.
- ^The Haar Transform
References
edit- Haar, Alfréd (1910), "Zur Theorie der orthogonalen Funktionensysteme",Mathematische Annalen,69 (3):331–371,doi:10.1007/BF01456326,hdl:2027/uc1.b2619563,S2CID 120024038
- Charles K. Chui,An Introduction to Wavelets, (1992), Academic Press, San Diego,ISBN 0-585-47090-1
- English Translation of Haar's seminal article:[1]
External links
edit- "Haar system",Encyclopedia of Mathematics,EMS Press, 2001 [1994]
- Free Haar wavelet filtering implementation and interactive demo
- Free Haar wavelet denoising and lossy signal compression
Haar transform
edit- Kingsbury, Nick."The Haar Transform". Archived fromthe original on 19 April 2006.
- Eck, David (31 January 2006)."Haar Transform Demo Applets".
- Ames, Greg (7 December 2002)."Image Compression"(PDF). Archived fromthe original(PDF) on 25 January 2011.
- Aaron, Anne; Hill, Michael; Srivatsa, Anand."MOSMAT 500. A photomosaic generator. 2. Theory". Archived fromthe original on 18 March 2008.
- Wang, Ruye (4 December 2008)."Haar Transform". Archived fromthe original on 21 August 2012.