Safekipedia
Digital signal processingSignal processing

Sampling (signal processing)

Adapted from Wikipedia · Discoverer experience

In signal processing, sampling is a way to change a continuous flow of information, like a smooth sound wave, into a set of separate numbers or "samples." Each sample captures the value of the signal at a specific moment in time. This process is very important in many modern technologies because it allows complex, continuous signals to be stored, processed, and transmitted using computers and other digital devices.

A device or operation called a sampler takes these snapshots from the continuous signal. In an ideal situation, each sample perfectly matches the value of the original signal at that exact point in time. This idea helps us understand how digital audio, images, and many other types of data can be created from real-world signals.

From these samples, the original signal can often be brought back to life, as long as the samples were taken at a fast enough rate. This maximum rate is known as the Nyquist limit, and when we pass the samples through a special reconstruction filter, we can get a close approximation of the original continuous signal. This ability to convert between continuous and discrete forms is the foundation of many technologies we use every day, from music players to mobile phones, making sampling a key concept in the world of sound wave and digital communication.

Theory

See also: Nyquist–Shannon sampling theorem

Sampling is a way to turn a continuous signal, like a sound wave, into a series of numbers by measuring it at regular time intervals. These intervals are called the sampling interval or sampling period. The number of these measurements taken each second is called the sampling frequency or sampling rate, and it’s measured in samples per second, sometimes called hertz. For example, 48 kHz means 48,000 samples are taken every second.

When we want to turn these samples back into a continuous signal, we use special math called interpolation. To avoid mistakes in this process, signals are often passed through a low-pass filter before sampling. This helps make sure that the reconstructed signal matches the original as closely as possible.

Practical considerations

In real life, devices called analog-to-digital converters (ADCs) are used to take samples of a continuous signal. Because of physical limits, these devices can't perfectly copy the original signal, leading to what we call distortion.

Some types of distortion include aliasing, where higher frequencies appear as lower ones; aperture error, which happens because the sample is an average over time rather than a single instant; jitter, a shift in timing; and noise, random variations in the signal. Other distortions can come from the ADC’s limited ability to change quickly (slew rate limit error) or from quantization, where the signal is rounded to a fixed number of levels. While some methods like oversampling can reduce certain errors, they have their own limits and costs.

Applications

Digital audio systems use a method called pulse-code modulation (PCM) to turn sound waves into a series of numbers, or samples. These samples capture the sound at specific moments, allowing computers to store and play back audio. For recording music or other sounds that humans can hear — from 20 to 20,000 Hz — common sampling rates are 44.1 kHz (used for CDs), 48 kHz, 88.2 kHz, or 96 kHz. Higher sampling rates, like 96 kHz or even 192 kHz, help reduce distortion but do not add more usable sound for human ears.

Video also uses sampling to turn moving images into digital data. Standard-definition TV uses either 720 by 480 pixels (as in US NTSC systems) or 720 by 576 pixels (as in UK PAL systems). High-definition TV uses formats like 720p, 1080i, and 1080p, which have more pixels and clearer images. In digital video, the sampling rate is linked to how many frames are shown each second, with common rates being 50 Hz for PAL and about 59.94 Hz for NTSC.

In 3D sampling, a grid of tiny cubes called voxels is used to create three-dimensional images from medical scans like X-ray computed tomography (CT), magnetic resonance imaging (MRI), and positron emission tomography (PET), as well as in other fields like seismic studies.

Sampling rateUse
5,512.5 HzSupported in Flash.
8,000 HzTelephone and encrypted walkie-talkie, wireless intercom and wireless microphone transmission; adequate for human speech but without sibilance (ess sounds like eff (/s/, /f/)).
11,025 HzOne quarter the sampling rate of audio CDs; used for lower-quality PCM, MPEG audio and for audio analysis of subwoofer bandpasses.
16,000 HzWideband frequency extension over standard telephone narrowband 8,000 Hz. Used in most modern VoIP and VVoIP communication products.
22,050 HzOne half the sampling rate of audio CDs; used for lower-quality PCM and MPEG audio and for audio analysis of low-frequency energy. Suitable for digitizing early 20th century audio formats such as 78s and AM Radio.
32,000 HzminiDV digital video camcorder, video tapes with extra channels of audio (e.g. DVCAM with four channels of audio), DAT (LP mode), Germany's Digitales Satellitenradio, NICAM digital audio, used alongside analogue television sound in some countries. High-quality digital wireless microphones. Suitable for digitizing FM radio.
37,800 HzCD-XA audio
44,055.9 HzUsed by digital audio locked to NTSC color video signals (3 samples per line, 245 lines per field, 59.94 fields per second = 29.97 frames per second).
44,100 HzAudio CD, also most commonly used with MPEG-1 audio (VCD, SVCD, MP3). Originally chosen by Sony because it could be recorded on modified video equipment running at either 25 frames per second (PAL) or 30 frame/s (using an NTSC monochrome video recorder) and cover the 20 kHz bandwidth thought necessary to match professional analog recording equipment of the time. A PCM adaptor would fit digital audio samples into the analog video channel of, for example, PAL video tapes using 3 samples per line, 588 lines per frame, 25 frames per second.
47,250 Hzworld's first commercial PCM sound recorder by Nippon Columbia (Denon)
48,000 HzThe standard audio sampling rate used by professional digital video equipment such as tape recorders, video servers, vision mixers and so on. This rate was chosen because it could reconstruct frequencies up to 22 kHz and work with 29.97 frames per second NTSC video, as well as 25 frame/s, 30 frame/s and 24 frame/s systems. With 29.97 frame/s systems, it is necessary to handle 1601.6 audio samples per frame, delivering an integer number of audio samples only every fifth video frame. Also used for sound with consumer video formats like DV, digital TV, DVD, and films. The professional serial digital interface (SDI) and High-definition Serial Digital Interface (HD-SDI) used to connect broadcast television equipment together use this audio sampling frequency. Most professional audio gear uses 48 kHz sampling, including mixing consoles, and digital recording devices.
50,000 HzFirst commercial digital audio recorders from the late 70s from 3M and Soundstream.
50,400 HzSampling rate used by the Mitsubishi X-80 digital audio recorder.
64,000 HzUncommonly used, but supported by some hardware and software.
88,200 HzSampling rate used by some professional recording equipment when the destination is CD (multiples of 44,100 Hz). Some pro audio gear uses (or is able to select) 88.2 kHz sampling, including mixers, EQs, compressors, reverb, crossovers, and recording devices.
96,000 HzDVD-Audio, some LPCM DVD tracks, BD-ROM (Blu-ray Disc) audio tracks, HD DVD (High-Definition DVD) audio tracks. Some professional recording and production equipment is able to select 96 kHz sampling. This sampling frequency is twice the 48 kHz standard commonly used with audio on professional equipment.
176,400 HzSampling rate used by HDCD recorders and other professional applications for CD production. Four times the frequency of 44.1 kHz.
192,000 HzDVD-Audio, some LPCM DVD tracks, BD-ROM (Blu-ray Disc) audio tracks, and HD DVD (High-Definition DVD) audio tracks, High-Definition audio recording devices and audio editing software. This sampling frequency is four times the 48 kHz standard commonly used with audio on professional video equipment.
352,800 HzDigital eXtreme Definition, used for recording and editing Super Audio CDs, as 1-bit Direct Stream Digital (DSD) is not suited for editing. 8 times the frequency of 44.1 kHz.
384,000 HzMaximum sample rate available in common software.
2,822,400 HzSACD, 1-bit delta-sigma modulation process known as Direct Stream Digital, co-developed by Sony and Philips.
5,644,800 HzDouble-Rate DSD, 1-bit Direct Stream Digital at 2× the rate of the SACD. Used in some professional DSD recorders.
11,289,600 HzQuad-Rate DSD, 1-bit Direct Stream Digital at 4× the rate of the SACD. Used in some uncommon professional DSD recorders.
22,579,200 HzOctuple-Rate DSD, 1-bit Direct Stream Digital at 8× the rate of the SACD. Used in rare experimental DSD recorders. Also known as DSD512.
45,158,400 HzSexdecuple-Rate DSD, 1-bit Direct Stream Digital at 16× the rate of the SACD. Used in rare experimental DSD recorders. Also known as DSD1024.

Undersampling

Main article: Undersampling

When a signal is sampled slower than a certain rate, called its Nyquist rate, the samples can look like they come from a lower-frequency signal. This is called undersampling. Sometimes, this is done on purpose so that the lower-frequency version still represents the original signal correctly and can be recovered. Undersampling is also known as bandpass sampling, harmonic sampling, IF sampling, and direct IF to digital conversion.

Oversampling

Main article: Oversampling

Oversampling is a technique used in modern devices that change continuous signals into digital ones. It helps reduce errors that can happen when turning digital signals back into continuous ones. This makes the final output clearer and more accurate.

Complex sampling

Complex sampling, also known as I/Q sampling, involves taking two related waveforms at the same time. These pairs of samples are then treated like complex numbers. This method helps in reducing the number of samples needed to represent a signal accurately.

When one waveform is the Hilbert transform of the other, it creates what is called an analytic signal. This special signal allows the sampling rate to be lowered without losing information. Instead of needing twice as many samples per second, only half as many complex samples are required to capture the same information. This technique is useful in many areas of signal processing.

Main article: Complex number

Main articles: Hilbert transform, Analytic signal, Nyquist rate, Equivalent baseband waveform

This article is a child-friendly adaptation of the Wikipedia article on Sampling (signal processing), available under CC BY-SA 4.0.