Content deleted Content added
std acro def. rm rep link. |
Rescuing 4 sources and tagging 0 as dead.) #IABot (v2.0.9.5 |
||
(30 intermediate revisions by 17 users not shown) | |||
Line 1:
{{Short description|Measurement of a signal at discrete time intervals}}
{{Other uses|Sampling (disambiguation)}}
[[Image:Signal Sampling.svg|thumb|300px|Signal sampling representation. The continuous signal ''S''(''t'') is represented with a green colored line while the discrete samples are indicated by the blue vertical lines.]]
In [[signal processing]], '''sampling''' is the reduction of a [[continuous-time signal]] to a [[discrete-time signal]]. A common example is the conversion of a [[sound wave]] to a sequence of "samples".
A '''sample''' is a value of the [[signal]] at a point in time and/or space; this definition differs from [[Sampling (statistics)|the term's usage in statistics]], which refers to a set of such values.{{efn-ua|For example, "number of samples" in signal processing is roughly equivalent to "[[sample size]]" in statistics.}}
Line 14 ⟶ 16:
Functions of space, time, or any other dimension can be sampled, and similarly in two or more dimensions.
For functions that vary with time, let
:
{{anchor|Sampling rate}}The '''sampling frequency''' or '''sampling rate''',
Reconstructing a continuous function from samples is done by interpolation algorithms.
Most sampled signals are not simply stored and reconstructed.
== Practical considerations==
Line 29 ⟶ 31:
* [[Analog-to-digital converter#Jitter|Aperture error]] results from the fact that the sample is obtained as a time average within a sampling region, rather than just being equal to the signal value at the sampling instant.<ref>H.O. Johansson and C. Svensson, "Time resolution of NMOS sampling switches", IEEE J. Solid-State Circuits Volume: 33, Issue: 2, pp. 237–245, Feb 1998.</ref> In a [[capacitor]]-based [[sample and hold]] circuit, aperture errors are introduced by multiple mechanisms. For example, the capacitor cannot instantly track the input signal and the capacitor can not instantly be isolated from the input signal.
* [[Jitter]] or deviation from the precise sample timing intervals.
* [[Noise (physics)|Noise]], including thermal sensor noise, [[analog circuit]] noise, etc..
* [[Slew rate]] limit error, caused by the inability of the ADC input value to change sufficiently rapidly.
* [[Quantization (signal processing)|Quantization]] as a consequence of the finite precision of words that represent the converted values.
* Error due to other [[non-linear]] effects of the mapping of input voltage to converted
Although the use of [[oversampling]] can completely eliminate aperture error and aliasing by shifting them out of the passband, this technique cannot be practically used above a few GHz, and may be prohibitively expensive at much lower frequencies.
Jitter, noise, and quantization are often analyzed by modeling them as random errors added to the sample values. Integration and zero-order hold effects can be analyzed as a form of [[low-pass filter]]ing. The non-linearities of either ADC or DAC are analyzed by replacing the ideal [[linear function]] mapping with a proposed [[Nonlinear system|nonlinear function]].
Line 56 ⟶ 58:
| editor-first=Glenn
| accessdate=2022-01-22
}}</ref> such as when recording music or many types of acoustic events, audio waveforms are typically sampled at 44.1 kHz ([[Compact Disc Digital Audio|CD]]), 48 kHz, 88.2 kHz, or 96 kHz.<ref>{{cite book |url=https://books.google.com/books?id=WzYm1hGnCn4C&pg=PT200 |pages=200, 446 |last=Self |first=Douglas |title=Audio Engineering Explained |publisher=Taylor & Francis US |year=2012 |isbn=978-0240812731}}</ref> The approximately double-rate requirement is a consequence of the [[Nyquist theorem]].
There has been an industry trend towards sampling rates well beyond the basic requirements: such as 96 kHz and even 192 kHz<ref>{{cite web |url=http://www.digitalprosound.com/Htm/SoapBox/soap2_Apogee.htm |title=Digital Pro Sound |access-date=8 January 2014 |archive-date=20 October 2008 |archive-url=https://web.archive.org/web/20081020231427/http://www.digitalprosound.com/Htm/SoapBox/soap2_Apogee.htm |url-status=dead }}</ref> Even though [[Ultrasound|ultrasonic]] frequencies are inaudible to humans, recording and mixing at higher sampling rates is effective in eliminating the distortion that can be caused by [[Aliasing#Folding|foldback aliasing]].
The [[Audio Engineering Society]] recommends 48 kHz sampling rate for most applications but gives recognition to 44.1 kHz for CD and other consumer uses, 32 kHz for transmission-related applications, and 96 kHz for higher bandwidth or relaxed [[anti-aliasing filter]]ing.<ref name=AES5>{{citation |url=http://www.aes.org/publications/standards/search.cfm?docID=14 |title=AES5-2008: AES recommended practice for professional digital audio – Preferred sampling frequencies for applications employing pulse-code modulation |publisher=Audio Engineering Society |year=2008 |access-date=2010-01-18}}</ref>
A more complete list of common audio sample rates is:
Line 68 ⟶ 70:
! Sampling rate
! Use
|-
|5,512.5 Hz
|Supported in [[Adobe Flash|Flash]].<ref>{{Cite web |date=2013 |title=SWF File Format Specification - Version 19 |url=https://open-flash.github.io/mirrors/swf-spec-19.pdf}}</ref>
|-
| 8,000 Hz
Line 87 ⟶ 92:
| [[CD-ROM#CD-ROM XA extension|CD-XA audio]]
|-
| 44,
| Used 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
| [[Audio 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.
|-
Line 96 ⟶ 101:
| world's first commercial [[Pulse-code modulation|PCM]] sound recorder by [[Nippon Columbia]] (Denon)
|-
| [[48,000 Hz]]
| The 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
|-
| 50,000 Hz
Line 106 ⟶ 111:
|-
| 64,000 Hz
| Uncommonly used, but supported by some hardware<ref>{{Cite web|url=http://www.rme-audio.de/en/products/hdsp_9632.php|title=RME: Hammerfall DSP 9632|website=www.rme-audio.de|access-date=2018-12-18|quote=Supported sample frequencies: Internally 32, 44.1, 48, 64, 88.2, 96, 176.4, 192
|-
| 88,200 Hz
| Sampling 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 Hz
Line 121 ⟶ 126:
|-
| 352,800 Hz
| [[Digital eXtreme Definition]], used for recording and editing [[Super Audio CD]]s, as 1-bit [[Direct Stream Digital|Direct Stream Digital (DSD)]] is not suited for editing.
|-
|384,000 Hz
|Maximum sample rate available in common software.{{cn|date=January 2025}}
|-
| 2,822,400 Hz
Line 142 ⟶ 150:
{{See also|Audio bit depth}}
Audio is typically recorded at 8-, 16-, and 24-bit depth
==== Speech sampling ====
Speech signals, i.e., signals intended to carry only human [[Speech communication|speech]], can usually be sampled at a much lower rate. For most [[phoneme]]s, almost all of the energy is contained in the 100 Hz – 4 kHz range, allowing a sampling rate of 8 kHz. This is the
=== Video sampling ===
{{More citations needed section|date=June 2007}}
[[Standard-definition television]] (SDTV) uses either 720 by 480 [[pixels]] (US [[NTSC]] 525-line) or 720 by 576
[[High-definition television]] (HDTV) uses [[720p]] (progressive), [[1080i]] (interlaced), and [[1080p]] (progressive, also known as Full-HD).
In [[digital video]], the temporal sampling rate is defined as the [[frame rate]]{{snd}}
* 50 Hz
* 60 / 1.001 Hz ~= 59.94 Hz
Video [[digital-to-analog converter]]s operate in the megahertz range (from ~3 MHz for low quality composite video scalers in early
When analog video is converted to [[digital video]], a different sampling process occurs, this time at the pixel frequency, corresponding to a spatial sampling rate along [[scan line]]s.
* 13.5 MHz
Spatial sampling in the other direction is determined by the spacing of scan lines in the [[raster graphics|raster]].
Spatial [[aliasing]] of high-frequency [[luma (video)|luma]] or [[chrominance|chroma]] video components shows up as a [[moiré pattern]].
Line 169 ⟶ 177:
The process of [[volume rendering]] samples a 3D grid of [[voxel]]s to produce 3D renderings of sliced (tomographic) data. The 3D grid is assumed to represent a continuous region of 3D space. Volume rendering is common in medical imaging, [[X-ray computed tomography]] (CT/CAT), [[magnetic resonance imaging]] (MRI), [[positron emission tomography]] (PET) are some examples. It is also used for [[seismic tomography]] and other applications.
[[File:Bandpass sampling depiction.svg|thumb|right|255px|The top two graphs depict Fourier transforms of two different functions that produce the same results when sampled at a particular rate.
== Undersampling ==
{{Main|Undersampling}}
When a [[bandpass]] signal is sampled slower than its [[Nyquist rate]], the samples are indistinguishable from samples of a low-frequency [[aliasing|alias]] of the high-frequency signal.
{{cite book
| title = Mixed-signal and DSP design techniques
Line 194 ⟶ 202:
'''Complex sampling''' (or '''I/Q sampling''') is the simultaneous sampling of two different, but related, waveforms, resulting in pairs of samples that are subsequently treated as [[complex numbers]].{{efn-ua|
Sample-pairs are also sometimes viewed as points on a [[constellation diagram]].
}}
When the complex sample-rate is ''B'', a frequency component at 0.6 ''B'', for instance, will have an alias at −0.4 ''B'', which is unambiguous because of the constraint that the pre-sampled signal was analytic. Also see {{slink|Aliasing|Complex sinusoids}}.
}}
Although complex-valued samples can be obtained as described above, they are also created by manipulating samples of a real-valued waveform.
When ''s''(''t'') is sampled at the Nyquist frequency (1/''T'' {{=}} 2''B''), the product sequence simplifies to <math>\left [s(nT)\cdot (-i)^n\right ].</math>
}}
The sequence of complex numbers is convolved with the impulse response of a filter with real-valued coefficients. That is equivalent to separately filtering the sequences of real parts and imaginary parts and reforming complex pairs at the outputs.
}}
== See also ==
|