Homework: Sampling: A class review: Difference between revisions
No edit summary |
No edit summary |
||
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Sampling: A Class Review == |
== Sampling: A Class Review == |
||
A continuous function has an infinite amount of information stored on it - a continuous line has an infinite amount of points on it to document. So, the only way we can manipulate transforms on the computer is to quanticize them using the |
A continuous function has an infinite amount of information stored on it - a continuous line has an infinite amount of points on it to document. So, the only way we can manipulate transforms on the computer is to quanticize them using the Fourier Series. |
||
To make our job easier when dealing with discrete time based equations, it is helpful to have a |
|||
<math>X_s(f) {\mathrm{def}}{=}\ \mathcal{F} \left \{ x_s(t) \right \} = \int_{-\infty}^{\infty} x_s(t) e^{-i 2 \pi f t} \,dt \ </math> |
|||
<math>= \mathcal{F} \left \{ \sum_{k=-\infty}^{\infty} x(t) \cdot e^{i 2 \pi k f_s t} \right \} </math> |
|||
But this Fourier Series is still infinite! What can we do to fix this, so we can store a finite number of values in our computer that can reproduce the waveform we are trying to save? |
|||
The answer lies in the Dirac Delta function. The Dirac delta function is a function on the real line which is zero everywhere except at the origin, where it is infinite, |
|||
: <math>\delta(x) = \begin{cases} \infty, & x = 0 \\ 0, & x \ne 0 \end{cases}</math> |
|||
and which is also constrained to satisfy the identity |
|||
:<math>\int_{-\infty}^\infty \delta(x) \, dx = 1.</math> |
|||
So the dirac delta function only works once at the origin, so far. We can change the function so it's effect occurs periodically, like this: |
|||
<math>\sum_{n=-\infty}^{\infty} x(t)\cdot \delta(t - nT) \ </math> |
|||
<br>Don't forget the Fourier transform! It will help you look at the frequency response of your new dirac function. <br> |
|||
<math>\mathcal{F}\left \{\sum_{n=-\infty}^{\infty} x(t)\cdot \delta(t - nT) \}\right \} </math> |
|||
Presto! You have a new tool for getting discrete values that can reproduce a continuous waveform. You need to sample the waveform at least twice as fast as the highest frequency that you are recording, or you might permanently lose the information from that frequency due to aliasing. Once these values are recorded, more processing can be done to make sure the signal coming out is just as smooth a wave as the original, or at least to a degree where the loss from sampling is undetected. |
Latest revision as of 15:05, 5 November 2007
Sampling: A Class Review
A continuous function has an infinite amount of information stored on it - a continuous line has an infinite amount of points on it to document. So, the only way we can manipulate transforms on the computer is to quanticize them using the Fourier Series.
But this Fourier Series is still infinite! What can we do to fix this, so we can store a finite number of values in our computer that can reproduce the waveform we are trying to save?
The answer lies in the Dirac Delta function. The Dirac delta function is a function on the real line which is zero everywhere except at the origin, where it is infinite,
and which is also constrained to satisfy the identity
So the dirac delta function only works once at the origin, so far. We can change the function so it's effect occurs periodically, like this:
Don't forget the Fourier transform! It will help you look at the frequency response of your new dirac function.
Presto! You have a new tool for getting discrete values that can reproduce a continuous waveform. You need to sample the waveform at least twice as fast as the highest frequency that you are recording, or you might permanently lose the information from that frequency due to aliasing. Once these values are recorded, more processing can be done to make sure the signal coming out is just as smooth a wave as the original, or at least to a degree where the loss from sampling is undetected.