🌐 US-Proxy
id="topics">
TOPICS
Search

Walsh Function


WalshFunctions

A Walsh function is one of a family of mutually orthogonal step functions taking the values -1 and 1 between their jumps. In the finite sampled convention used here, the 2^n Walsh functions of order n are the rows of the standard recursively constructed Hadamard matrix H_(2^n) arranged in sequency order, with each row starting at +1 (Thompson et al. 1986, p. 204; Wolfram 2002, p. 1073). Write W(n,k) for row k, numbered from 1 to 2^n, where n is a nonnegative integer. Each row has 2^n samples. The cases n=1, 2, and 3 are illustrated above.

Walsh functions were used by electrical engineers such as Frank Fowle in the 1890s to find transpositions of wires that minimized crosstalk and were introduced into mathematics by Walsh (1923; Wolfram 2002, p. 1073).

For n>=1, replacing -1 by 0 in W(n-1,[2^n/3]) gives the first 2^(n-1) terms of the Thue-Morse sequence beginning 1, 0, 0, 1, ... (Wolfram 2002, p. 1073). Here [x] is the ceiling function. For n>=1, the values of [2^n/3] are given explicitly by (3+2^(n+1)+(-1)^n)/6, and the first few are 1, 2, 3, 6, 11, 22, 43, 86, 171, ... (OEIS A005578).

WalshFunctionOrderings

Walsh functions can be ordered in a number of ways, illustrated above (Wolfram 2002, p. 1073). The sequency k of a Walsh function is defined as half the number of zero crossings in one cycle of the time base. In sequency order (left figure), each row has one more color change than the preceding row. In natural (or Hadamard) order (middle figure), the Walsh functions display a nested structure. Dyadic (or Paley) order (right figure) is related to Gray code reordering of the rows (Wolfram 2002, p. 1073).

Walsh functions with nonidentical sequencies are orthogonal, as are the functions W(n,2k) and W(n,2k+1) whenever both row indices are in range. The pointwise product of two sampled Walsh rows of the same length is another Walsh row of that length.

After centering the time interval at zero, Harmuth (1969) designates the even Walsh functions Cal(k) and the odd Walsh functions Sal(k),

Cal(n,k)=W(n,2k+1)
(1)
Sal(n,k)=W(n,2k),
(2)

where k is the sequency and the row indices are restricted to 1, ..., 2^n. In particular, Cal(n,0) is the constant row.

Taking the matrix product of one-dimensional data represented as a row vector with a corresponding matrix of Walsh basis vectors gives the Walsh transform. Two-dimensional data can also be flattened to a vector and treated in this way (Wolfram 2002, p. 1073). Walsh transforms can be performed particularly efficiently, resulting in the so-called fast Walsh transform.


See also

Boxcar Function, Cal, Fast Walsh Transform, Hadamard Matrix, Heaviside Step Function, Rectangle Function, Sal, Sequency, Square Wave, Walsh Matrix, Walsh Transform

Explore with Wolfram|Alpha

References

Beauchamp, K. G. Walsh Functions and Their Applications. London, England: Academic Press, 1975.Harmuth, H. F. "Applications of Walsh Functions in Communications." IEEE Spectrum 6, 82-91, 1969. https://doi.org/10.1109/MSPEC.1969.5214175.Sloane, N. J. A. Sequence A005578/M0788 in "The On-Line Encyclopedia of Integer Sequences."Thompson, A. R.; Moran, J. M.; and Swenson, G. W. Jr. Interferometry and Synthesis in Radio Astronomy. New York: Wiley, p. 204, 1986.Tzafestas, S. G. Walsh Functions in Signal and Systems Analysis and Design. New York: Van Nostrand Reinhold, 1985.Walsh, J. L. "A Closed Set of Normal Orthogonal Functions." Amer. J. Math. 45, 5-24, 1923. https://doi.org/10.2307/2387224.Wolfram, S. A New Kind of Science. Champaign, IL: Wolfram Media, pp. 573 and 1072-1073, 2002.

Referenced on Wolfram|Alpha

Walsh Function

Cite this as:

Weisstein, Eric W. "Walsh Function." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/WalshFunction.html

Subject classifications