Ideal Spectral Interpolation
Stretch Operator
Signal Operators
Contents
Global Contents
Global Index
  Index
  Search
Zero Padding
Zero padding consists of extending a signal (or spectrum)
with zeros to extend its time (or frequency band) limits. It maps a
length
signal to a length
signal, but
need not be an
integer multiple of
. To unify the time-domain and
frequency-domain definitions of zero-padding, it is necessary to
regard the original time axis
as indexing
positive-time samples from 0 to
(for
even), and negative
times in the interval
.
Furthermore, we require
when
is even,
while odd
requires no such restriction.
Definition:
![$\displaystyle \hbox{\sc ZeroPad}_{M,m}(x) \isdef \left\{\begin{array}{ll} x(m),...
...ert m\vert < N/2 \\ [5pt] 0, & \mbox{otherwise} \\ \end{array} \right. \protect$](img971.png) |
(7.3) |
where
, with
for
odd,
and
for
even.
For example,
In this example, the first sample corresponds to time 0, and five
zeros have been inserted between the samples corresponding to times
and
.
Figure 7.5 illustrates zero padding from length
out to length
. Note that
and
could be replaced by
and
in the
figure caption.
Figure:
Illustration of zero padding:
a) Original signal (or spectrum)
plotted over the
domain
where
(i.e., as the samples would
normally be held in a computer array).
b)
.
c) The same signal
plotted over the domain
which
is more natural for interpreting negative times (frequencies).
d)
plotted over the zero-centered domain.
 |
When a signal
is causal, that is,
for all
negative-time samples (
), then zero-padding can be
carried out by simply appending zeros to the original signal.
For example,
![$\displaystyle \hbox{\sc ZeroPad}_{10}([1,2,3,4,5]) = [1,2,3,4,5,0,0,0,0,0]$](img982.png)
(causal case)
The causal definition is natural when
represents a signal
starting at time 0 and extending for
samples. On the other
hand, when we are zero-padding a spectrum, or we have a time-domain
signal including both positive- and negative-time samples, then the
zeros should be inserted ``outside the nonzero interval'' of the
signal or spectrum, as defined in Eq. (7.3).
Ideal Spectral Interpolation
Stretch Operator
Signal Operators
Contents
Global Contents
Global Index
  Index
  Search
``Mathematics of the Discrete Fourier Transform (DFT)'',
by Julius O. Smith III,
W3K Publishing, 2003, ISBN 0-9745607-0-7.
(Browser settings for best viewing results)
(How to cite this work)
(Order a printed hardcopy)
Copyright © 2003-10-09 by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),
Stanford University
(automatic links disclaimer)