
314 Discrete Walsh-Hadamard Transform
where ni is the zth bit in the binary representation of n. The Isb is indicated
by the subscript 0. The transform coefficients,
X
w
(k),
are called sequency
coefficients. Sequency is defined as, for waveforms with an odd number of
zero crossings, 0.5(number of zero crossings+1) and, for waveforms with an
even number of zero crossings, 0.5(number of zero crossings). The matrix
form of the defining equation, with N = 8, is written as
" MO) "
M(i)
M2)
M3)
M4)
M5)
M6)
. M?)
" 1 1 1 1
1
1 1 1 -•
1
1-1-1 j
1
1-1-1 -]
1-1 1-1 ]
1-1 1-1 -]
1-1-1 1 ]
1-1-1 1 -]
till"
1
-1 -1 -1
L
1-1-1
L
—1 1 1
L
-1 1-1
L
1 -1 1
L
-1 -1 1
L
1 1 -1_
" x(0) "
ar(l)
x(2)
*(3)
x(4)
*(5)
x{6)
. x(T) .
The DWT basis waveforms, with N = 8, are shown in Fig. 16.1. The DWT
basis functions,
Af-l
W
N
(k,n)=
J[{-l)
n
*
k
"-^,
n
,fc = 0,l,...,iV-l,
can be generated using the bits in the binary representation of n and k,
the data and sequency indices. For each value of k, multiplying the cor-
responding bits of n and k to get a 0 or 1 and finding the product of (-1)
to the power of 0 or 1 yields the kernel values. Let k = 3 = Oil and
n = 2 = 010. Then, the bit-by-bit product of 110 (remember the bits of
k are to be reversed) and 010 is 010. The corresponding kernel value is
W
8
(3,2) = (-1)°(-1)
1
(-1)° =
-1-
Since the first row of the kernel matrix
is all ones,
N-l
Y,W
N
(0,n)=N
n=0
Since there are equal number of plus ones and minus ones in all other rows,
JV-l
J2W
N
(k,n) = 0,
Jfc
=
1,2,...,JV-l
n=0