Sampling — Transcript
Full transcript
- 0:00EP 1100 data communication and computer
- 0:04networks some illustration in this
- 0:06material are collected from the book by
- 0:08foron data Communications and networking
- 0:10published by
- 0:11mcrill I want to start by distinguishing
- 0:14two types of signals analog and digital
- 0:17signals analog signals are continuous in
- 0:20time and also continuous in amplitude
- 0:22that means that like giv the figure on
- 0:24the right that they can be drawn as a
- 0:26continuous curve as a functional time
- 0:30digital signals on the other side are
- 0:32discrete in time so they only exist at
- 0:34certain points in time and at the points
- 0:37where they exist they only take one out
- 0:39of a limited set of amplitude levels if
- 0:42you look on the right you see that the
- 0:43signal can take four amplitude levels
- 0:46the zeroth and what first second and
- 0:48third
- 0:49level sampling is the process to go from
- 0:53an analog signal to a Time discrete
- 0:56signal we do that by sampling the signal
- 0:59meaning that we read the signal value at
- 1:01specific points in time if we do this
- 1:04correctly we can recover the analog
- 1:06signal without any information loss but
- 1:09then we have to obey a certain sampling
- 1:11rate this is given by a theorem called
- 1:13the Nyquist theorem it states that you
- 1:16must sample at least twice as fast as
- 1:19the highest frequency of the analog
- 1:21signal so we denote this by FS being the
- 1:24sampling frequency so it has to be at
- 1:27least twice as high this frequency often
- 1:30referred to as a Nyquist frequency or
- 1:32nist rate the nist frequency is both
- 1:35sufficient and necessary to recover the
- 1:38analog signal and there's no gain in
- 1:40sampling at a higher rate this example
- 1:42here shows a signal which has Max
- 1:45frequency n Hertz so we need to sample
- 1:48it at at least 2 n
- 1:50Hertz the the interval between two
- 1:54values is the inverse of the sampling
- 1:58frequency so in this case it's it's 1/
- 2:002N seconds by sampling we obtain a
- 2:04signal which is discreet in time but
- 2:07still continuous in amplitude the
- 2:09Nyquist theorum is named after Harry
- 2:10Nyquist a Swede from verland who
- 2:13immigrated and was active in United
- 2:17States sampling gives us a Time
- 2:20discreete signal but it still is
- 2:23continuous in amplitude to get a digital
- 2:25signal we need a signal which only takes
- 2:29ampl udes from a limited set of
- 2:31amplitude values we call this
- 2:34quantization so we select which
- 2:36amplitude values we should accept in the
- 2:38digital signal and then we round off
- 2:42each of the sample values to its closest
- 2:46level this roundoff gives an information
- 2:49loss and this process is not
- 2:51reversible so the important aspect of
- 2:54quantization is to design it so that
- 2:57this round of error does not not disturb
- 3:02the communication for instance if it's a
- 3:04voice signal that that we we Conta the
- 3:07roundoff error should not be audible or
- 3:09at least not disturb the The Voice
- 3:12communication once we have quantized the
- 3:14signal to uh a set of finite amplitude
- 3:18levels then we can represent each
- 3:20amplitude value by a code word of of
- 3:22bits so for instance we could take the
- 3:24zeroth level and represent it by four
- 3:27zeros we could have a value which
- 3:29represents
- 3:30plus 25 molts that could be represented
- 3:33by
- 3:3400001 plus 50 molts could be 0 0 1 0 and
- 3:39minus 25 Mills could be 1 0 0
- 3:421 the process of going from an analog to
- 3:46a digital signal is sometimes referred
- 3:48to as pulse code modulation so it
- 3:50includes both the sampling and the
- 3:52quantization the sampling frequency has
- 3:55to be given by the bandwidth or the
- 3:56highest frequency of the signal it's us
- 4:00usually ensured by filtering the signal
- 4:03so that we know before sampling that the
- 4:05signal does not have any higher
- 4:07frequency than the one that we have
- 4:09designed the sampling for then we decide
- 4:12how many bits or how many quantization
- 4:14levels we should have in the signal so
- 4:16that we get the quality that's
- 4:17acceptable for the purpose of digitizing
- 4:20the signal and I said we represent each
- 4:23digital amplitude value by an electric
- 4:27signal level so when we want to recover
- 4:30an analog signal we know that if you get
- 4:32a certain bit value it should be mapped
- 4:35into a certain voltage level in the
- 4:36outgoing signal so for example we could
- 4:39have 8 bit sample values and they could
- 4:41represent quantization levels fromus 127
- 4:45to plus7 for instance for an audio
- 4:47signal and these levels from - 127 to
- 4:50plus 127 will in turn also be mapped to
- 4:54certain voltage levels for the outgoing
- 4:58signal with the samp a quantization we
- 5:01go from an analog signal to a digital
- 5:03signal which has a bit rate that means
- 5:05that we sample it at the certain
- 5:07frequency which has units one/ seconds
- 5:10times the number of bits per sample
- 5:13measured in bits of course so we get the
- 5:15unit of bits per second one bit per
- 5:19second is a very low data rate and
- 5:21therefore we need prefixes to to mark
- 5:24that we want to have higher units such
- 5:26as kilo Mega Giga Tera and so forth
- 5:32here are some examples of PCM encoded
- 5:35signals for telephony the bandwidth of
- 5:37the human voice is below 4 khz so it was
- 5:41decided to sample at 8 khz it's enough
- 5:44to represent each sample by eight bits
- 5:47so the 256 levels that I had in the
- 5:49previous slide and that give a bit rate
- 5:51of 64 kilobits per second which has been
- 5:53the standard digital rate of telepan IM
- 5:56music CD needs to represent the full
- 5:58auditory spectrum of the human ear which
- 6:01is around 20 khz the sampling rate was
- 6:04decided to be 44.1 khz since the quality
- 6:07expectation is much higher each sample
- 6:10is represented by 16bit amplitude values
- 6:13and that create a data rate per channel
- 6:16of 76 KOB per second and similarly for
- 6:20DVD audio there is a whole set of
- 6:23sampling rates and a resolution of 16 20
- 6:27or 24 bits per sample giving a data rate
- 6:31up to
- 6:324.6 megabits per second per
- 6:58Channel
About this transcript
This page contains the full transcript of Sampling by Gunnar Karlsson, generated from the public captions YouTube serves with the video. The transcript has 1,024 words across 148 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.