Lably
Skip to content

Nyquist–Shannon sampling theorem

Sufficiency theorem for reconstructing signals from samples

  • 19 min read
  • 10 chapters

Related on Lably

Through Theorem, Function (mathematics) and Convolution

Strictly speaking, the theorem only applies to a class of mathematical functions having a Fourier transform that is zero outside of a finite region of frequencies. Intuitively we expect that when one reduces a continuous function to a discrete sequence and interpolates back to a continuous function, the fidelity of the result depends on the density (or sample rate) of the original samples. The sampling theorem introduces the concept of a sample rate that is sufficient for perfect fidelity for the class of functions that are band-limited to a given bandwidth, such that no actual information is lost in the sampling process. It expresses the sufficient sample rate in terms of the bandwidth for the class of functions. The theorem also leads to a formula for perfectly reconstructing the original continuous-time function from the samples.

Perfect reconstruction may still be possible when the sample-rate criterion is not satisfied, provided other constraints on the signal are known (see § Sampling of non-baseband signals below and compressed sensing). In some cases (when the sample-rate criterion is not satisfied), utilizing additional constraints allows for approximate reconstructions. The fidelity of these reconstructions can be verified and quantified utilizing Bochner's theorem.

An important consequence of the sampling theorem is the concept of Nyquist frequency, which holds that in order to reconstruct a bandlimited signal free of aliasing, the sampling rate must be at least twice the signal's bandwidth.

The name Nyquist–Shannon sampling theorem honours Harry Nyquist and Claude Shannon, but the theorem was first proven in a 1920 paper by Kinnosuke Ogura, according to a historical review in 2011.

The theorem is also known by the names Whittaker–Shannon sampling theorem, Whittaker–Shannon, or Whittaker–Nyquist–Shannon to include E. T. Whittaker since his 1915 paper is sometimes regarded as the first paper on the sampling theorem, though it was actually about an interpolation formula and its proof was unclear and contained errors.

The theorem may also be referred to as the cardinal theorem of interpolation.

Introduction

Sampling is a process of converting a signal (for example, a function of continuous time or space) into a sequence of values (a function of discrete time or space). Shannon's version of the theorem states:

Theorem—If a function x(t) contains no frequencies higher than B hertz, then it can be completely determined from its sampled values at a sequence of points spaced less than 1/(2B) seconds apart.

A sufficient sample-rate is therefore anything larger than 2B samples per second. Equivalently, for a given sample rate fs, perfect reconstruction is guaranteed possible for a bandlimit B<fs/2.

When the bandlimit is too high (or there is no bandlimit), the reconstruction exhibits imperfections known as aliasing. Modern statements of the theorem are sometimes careful to explicitly state that x(t) must contain no sinusoidal component at exactly frequency B, or that B must be strictly less than one half the sample rate. The threshold 2B is called the Nyquist rate and is an attribute of the continuous-time input x(t) to be sampled. The sample rate must exceed the Nyquist rate for the samples to suffice to represent x(t). The threshold fs/2 is called the Nyquist frequency and is an attribute of the sampling equipment. All meaningful frequency components of the properly sampled x(t) exist below the Nyquist frequency. The condition described by these inequalities is called the Nyquist criterion, or sometimes the Raabe condition. The theorem is also applicable to functions of other domains, such as space, in the case of a digitized image. The only change, in the case of other domains, is the units of measure attributed to t, fs, and B.

The symbol T≜1/fs is customarily used to represent the interval between adjacent samples and is called the sample period or sampling interval. The samples of function x(t) are commonly denoted by x[n]≜T⋅x(nT) (alternatively xn in older signal processing literature), for all integer values of n. The multiplier T is a result of the transition from continuous time to discrete time (see Discrete-time Fourier transform#Relation to Fourier Transform), and it is needed to preserve the energy of the signal as T varies.

A mathematically ideal way to interpolate the sequence involves the use of sinc functions. Each sample in the sequence is replaced by a sinc function, centered on the time axis at the original location of the sample nT, with the amplitude of the sinc function scaled to the sample value, x(nT). Subsequently, the sinc functions are summed into a continuous function. A mathematically equivalent method uses the Dirac comb and proceeds by convolving one sinc function with a series of Dirac delta pulses, weighted by the sample values. Neither method is numerically practical. Instead, some type of approximation of the sinc functions, finite in length, is used. The imperfections attributable to the approximation are known as interpolation error.

Practical digital-to-analog converters produce neither scaled and delayed sinc functions, nor ideal Dirac pulses. Instead they produce a piecewise-constant sequence of scaled and delayed rectangular pulses (the zero-order hold), usually followed by a lowpass filter (called an "anti-imaging filter") to remove spurious high-frequency replicas (images) of the original baseband signal.

Sign in to keep reading

9 more chapters are free with a Lably account.

More in Computing and communication