Reference articles on history, science, culture and more
Encyclopedia

Walsh function

Concept in mathematics

In mathematics, more specifically in harmonic analysis, Walsh functions form a complete orthogonal set of functions that can be used to represent any discrete function, just like trigonometric functions can be used to represent any continuous function in Fourier analysis. They can thus be viewed as a discrete, digital counterpart of the continuous, analog system of trigonometric functions on the unit interval. But unlike the sine and cosine functions, which are continuous, Walsh functions are piecewise constant. They take the values −1 and +1 only, on sub-intervals defined by dyadic fractions.

The system of Walsh functions is known as the Walsh system. It is an extension of the Rademacher system of orthogonal functions.

Walsh functions, the Walsh system, the Walsh series, and the fast Walsh-Hadamard transform are all named after the American mathematician Joseph L. Walsh. They find various applications in physics and engineering when analyzing digital signals.

Historically, various numerations of Walsh functions have been used; none of them is particularly superior to another. This articles uses the Walsh-Paley numeration.

01Definition

We define the sequence of Walsh functions W_{k}:[0,1]\rightarrow \{-1,1\}, k\in \mathbb {N} as follows.

For any natural number k, and real number x\in [0,1], let

k_{j} be the jth bit in the binary representation of k, starting with k_{0} as the least significant bit, and
x_{j} be the jth bit in the fractional binary representation of x, starting with x_{1} as the most significant fractional bit.

Then, by definition

W_{k}(x)=(-1)^{\sum _{j=0}^{\infty }k_{j}x_{j+1}}

In particular, W_{0}(x)=1 everywhere on the interval, since all bits of k are zero.

Notice that W_{2^{m}} is precisely the Rademacher function rm. Thus, the Rademacher system is a subsystem of the Walsh system. Moreover, every Walsh function is a product of Rademacher functions:

W_{k}(x)=\prod _{j=0}^{\infty }r_{j}(x)^{k_{j}}
Natural ordered Hadamard matrix (middle matrix) of order 16 that is sequency ordered to output a Walsh matrix (right matrix).Both contain the 16 Walsh functions of order 16 as rows (and columns).In the right matrix, the number of sign changes per row is consecutive.
Natural ordered Hadamard matrix (middle matrix) of order 16 that is sequency ordered to output a Walsh matrix (right matrix).Both contain the 16 Walsh functions of order 16 as rows (and columns).In the right matrix, the number of sign changes per row is consecutive.

02Comparison between Walsh functions and trigonometric functions

Walsh functions and trigonometric functions are both systems that form a complete, orthonormal set of functions, an orthonormal basis in the Hilbert space L^{2}[0,1] of the square-integrable functions on the unit interval. Both are systems of bounded functions, unlike, say, the Haar system or the Franklin system.

Both trigonometric and Walsh systems admit natural extension by periodicity from the unit interval to the real line. Furthermore, both Fourier analysis on the unit interval (Fourier series) and on the real line (Fourier transform) have their digital counterparts defined via Walsh system, the Walsh series analogous to the Fourier series, and the Hadamard transform analogous to the Fourier transform.

03Properties

The Walsh system \{W_{k}\},k\in \mathbb {N} _{0} is an abelian multiplicative discrete group isomorphic to \coprod _{n=0}^{\infty }\mathbb {Z} /2\mathbb {Z}, the Pontryagin dual of the Cantor group \prod _{n=0}^{\infty }\mathbb {Z} /2\mathbb {Z}. Its identity is W_{0}, and every element is of order two (that is, self-inverse).

The Walsh system is an orthonormal basis of the Hilbert space L^{2}[0,1]. Orthonormality means

\int _{0}^{1}W_{k}(x)W_{l}(x)dx=\delta _{kl},

and being a basis means that if, for every f\in L^{2}[0,1], we set f_{k}=\int _{0}^{1}f(x)W_{k}(x)dx then

\int _{0}^{1}(f(x)-\sum _{k=0}^{N}f_{k}W_{k}(x))^{2}dx\;\ {\xrightarrow[{N\rightarrow \infty }]{}}\;\ 0

It turns out that for every f\in L^{2}[0,1], the series \sum _{k=0}^{\infty }f_{k}W_{k}(x) converges to f(x) for almost every x\in [0,1].

The Walsh system (in Walsh-Paley numeration) forms a Schauder basis in L^{p}[0,1], 1<p<\infty. Note that, unlike the Haar system, and like the trigonometric system, this basis is not unconditional, nor is the system a Schauder basis in L^{1}[0,1].

04Generalizations

Walsh-Ferleger systems

Let \mathbb {D} =\prod _{n=1}^{\infty }\mathbb {Z} /2\mathbb {Z} be the compact Cantor group endowed with Haar measure and let {\hat {\mathbb {D} }}=\coprod _{n=1}^{\infty }\mathbb {Z} /2\mathbb {Z} be its discrete group of characters. Elements of {\hat {\mathbb {D} }} are readily identified with Walsh functions. Of course, the characters are defined on \mathbb {D} while Walsh functions are defined on the unit interval, but since there exists a modulo zero isomorphism between these measure spaces, measurable functions on them are identified via isometry.

Then basic representation theory suggests the following broad generalization of the concept of Walsh system.

For an arbitrary Banach space (X,||\cdot ||) let \{R_{t}\}_{t\in \mathbb {D} }\subset \operatorname {Aut} X be a strongly continuous, uniformly bounded faithful action of \mathbb {D} on X. For every \gamma \in {\hat {\mathbb {D} }}, consider its eigenspace X_{\gamma }=\{x\in X:R_{t}x=\gamma (t)x\}. Then X is the closed linear span of the eigenspaces: X={\overline {\operatorname {Span} }}(X_{\gamma },\gamma \in {\hat {\mathbb {D} }}). Assume that every eigenspace is one-dimensional and pick an element w_{\gamma }\in X_{\gamma } such that \|w_{\gamma }\|=1. Then the system \{w_{\gamma }\}_{\gamma \in {\hat {\mathbb {D} }}}, or the same system in the Walsh-Paley numeration of the characters \{w_{k}\}_{k\in {\mathbb {N} }_{0}} is called generalized Walsh system associated with action \{R_{t}\}_{t\in \mathbb {D} }. Classical Walsh system becomes a special case, namely, for

R_{t}:x=\sum _{j=1}^{\infty }x_{j}2^{-j}\mapsto \sum _{j=1}^{\infty }(x_{j}\oplus t_{j})2^{-j}

where \oplus is addition modulo 2.

In the early 1990s, Serge Ferleger and Fyodor Sukochev showed that in a broad class of Banach spaces (so called UMD spaces) generalized Walsh systems have many properties similar to the classical one: they form a Schauder basis and a uniform finite-dimensional decomposition in the space, have property of random unconditional convergence. One important example of generalized Walsh system is Fermion Walsh system in non-commutative Lp spaces associated with hyperfinite type II factor.

Fermion Walsh system

The Fermion Walsh system is a non-commutative, or "quantum" analog of the classical Walsh system. Unlike the latter, it consists of operators, not functions. Nevertheless, both systems share many important properties, e.g., both form an orthonormal basis in corresponding Hilbert space, or Schauder basis in corresponding symmetric spaces. Elements of the Fermion Walsh system are called Walsh operators.

The term Fermion in the name of the system is explained by the fact that the enveloping operator space, the so-called hyperfinite type II factor {\mathcal {R}}, may be viewed as the space of observables of the system of countably infinite number of distinct spin 1/2 fermions. Each Rademacher operator acts on one particular fermion coordinate only, and there it is a Pauli matrix. It may be identified with the observable measuring spin component of that fermion along one of the axes \{x,y,z\} in spin space. Thus, a Walsh operator measures the spin of a subset of fermions, each along its own axis.

Vilenkin system

Fix a sequence \alpha =(\alpha _{1},\alpha _{2},...) of integers with \alpha _{k}\geq 2,k=1,2,\dots and let \mathbb {G} =\mathbb {G} _{\alpha }=\prod _{n=1}^{\infty }\mathbb {Z} /\alpha _{k}\mathbb {Z} endowed with the product topology and the normalized Haar measure. Define A_{0}=1 and A_{k}=\alpha _{1}\alpha _{2}\dots \alpha _{k-1}. Each x\in \mathbb {G} can be associated with the real number

\left|x\right|=\sum _{k=1}^{\infty }{\frac {x_{k}}{A_{k}}}\in \left[0,1\right].

This correspondence is a module zero isomorphism between \mathbb {G} and the unit interval. It also defines a norm which generates the topology of \mathbb {G}. For k=1,2,\dots, let \rho _{k}:\mathbb {G} \to \mathbb {C} where

\rho _{k}(x)=\exp \left(i{\frac {2\pi x_{k}}{\alpha _{k}}}\right)=\cos \left({\frac {2\pi x_{k}}{\alpha _{k}}}\right)+i\sin \left({\frac {2\pi x_{k}}{\alpha _{k}}}\right).

The set \{\rho _{k}\} is called generalized Rademacher system. The Vilenkin system is the group {\hat {\mathbb {G} }}=\coprod _{n=1}^{\infty }\mathbb {Z} /\alpha _{k}\mathbb {Z} of (complex-valued) characters of \mathbb {G}, which are all finite products of \{\rho _{k}\}. For each non-negative integer n there is a unique sequence n_{0},n_{1},\dots such that 0\leq n_{k}<\alpha _{k+1},k=0,1,2,\dots and

n=\sum _{k=0}^{\infty }n_{k}A_{k}.

Then {\hat {\mathbb {G} }}={\chi _{n}|n=0,1,\dots } where

\chi _{n}=\sum _{k=0}^{\infty }\rho _{k+1}^{n_{k}}.

In particular, if \alpha _{k}=2,k=1,2..., then \mathbb {G} is the Cantor group and {\hat {\mathbb {G} }}=\left\{\chi _{n}|n=0,1,\dots \right\} is the (real-valued) Walsh-Paley system.

The Vilenkin system is a complete orthonormal system on \mathbb {G} and forms a Schauder basis in L^{p}(\mathbb {G} ,\mathbb {C} ), 1<p<\infty.

Nonlinear Phase Extensions

Nonlinear phase extensions of discrete Walsh-Hadamard transform were developed. It was shown that the nonlinear phase basis functions with improved cross-correlation properties significantly outperform the traditional Walsh codes in code division multiple access (CDMA) communications.

05Applications

Applications of the Walsh functions can be found wherever digit representations are used, including speech recognition, medical and biological image processing, and digital holography.

For example, the fast Walsh-Hadamard transform (FWHT) may be used in the analysis of digital quasi-Monte Carlo methods. In radio astronomy, Walsh functions can help reduce the effects of electrical crosstalk between antenna signals. They are also used in passive LCD panels as X and Y binary driving waveforms where the autocorrelation between X and Y can be made minimal for pixels that are off.

Watch videos about Walsh functionExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Walsh function, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Images, from Wikimedia Commons:

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.