<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="m11443">
  <name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Illustrations</name>
  <metadata xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
  <md:version xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">1.33</md:version>
  <md:created xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">2003/07/09 03:39:39 GMT-5</md:created>
  <md:revised xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">2003/11/02 10:46:51.903 US/Central</md:revised>
  <md:authorlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <md:author xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="Anders">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Anders</md:firstname>
      
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Gjendemsjo</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">gjendems@NO-SPAM.tele.ntnu.no</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <md:maintainer xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="Anders">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Anders</md:firstname>
      
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Gjendemsjo</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">gjendems@NO-SPAM.tele.ntnu.no</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <md:keyword xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Sampling</md:keyword>
    <md:keyword xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Aliasing</md:keyword>
    <md:keyword xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Illustrations</md:keyword>
    <md:keyword xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Examples</md:keyword>
    <md:keyword xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Applet</md:keyword>
    <md:keyword xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Java</md:keyword>
  </md:keywordlist>

  <md:abstract xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Illustration of the sampling theorem</md:abstract>
</metadata>
    <content xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="start">
        In this module we illustrate the processes involved in sampling and reconstruction.
	To see how all these processes work together as a whole, take a look at the <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11465">system view</cnxn>. In <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11549">
Sampling and reconstruction with Matlab</cnxn> we provide a Matlab script
for download. The matlab script shows the process of sampling and reconstruction <term xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">live</term>.
    
    </para>

    <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s0">
    <name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Basic examples</name>
    <example xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="ex1">
	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="ex1p1">
	    To sample an analog signal with 3000 Hz as the
	    highest frequency component requires sampling
	    at 6000 Hz or above.
	 </para>
    </example>

    <example xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="ex2">
	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="ex2p1">
	    The sampling theorem can also be applied in two dimensions, i.e. for image analysis. 
	    A 2D sampling theorem has a simple physical interpretation in image analysis: 
	    Choose the sampling interval such that it is less than or equal to half of the 
	    smallest interesting detail in the image.
        </para>
    </example>
    </section>

    <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1">
	<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">The process of sampling</name>
        <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1p1">
	    We start off with an analog signal. This can for example be the sound
	    coming from your stereo at home or your friend talking.
	</para>

	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1p2">

	    The signal is then sampled uniformly. Uniform sampling implies that we sample every
	    <m:math><m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci></m:math>
	    seconds. In <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f1"/> we see an analog signal. The analog
	    signal has been sampled at times
	    <m:math>
		<m:apply>
		    <m:eq/>
		    <m:ci>t</m:ci>
		    <m:apply>
			<m:times/>
			<m:ci>n</m:ci>
		        <m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
		    </m:apply>
		</m:apply>
	    </m:math>.
	    
	    <figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="f1">
	        <media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="image/jpg" src="analog_sampling.jpg"/>
		<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Analog signal, samples are marked with dots.</caption>

	    </figure>
	    
	    In signal processing it is often more convenient and easier to work
	    in the frequency domain. So let's look at at the signal in
	    frequency domain, <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f2"/>. For illustration purposes
	    we take the frequency content of the signal as a triangle.
	    (If you Fourier transform the signal in <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f1"/> you will not
	    get such a nice triangle.)
	    
	
	    <figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="f2">
	    	<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="image/jpg" src="spektrum_1.jpg"/>
		<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
		    The spectrum
		    <m:math>
			<m:apply>
			    <m:ci>X</m:ci>
			    <m:apply>
				<m:times/>
				<m:imaginaryi/>
				<m:ci>Ω</m:ci>
			    </m:apply>
			</m:apply>
		    </m:math>.
		</caption>
	    </figure>
	    
	    Notice that the signal in <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f2"/> is bandlimited.
	    We can see that the signal is bandlimited because
	    <m:math>
		<m:apply>
		    <m:ci>X</m:ci>
		    <m:apply>
			<m:times/>
			<m:imaginaryi/>
			<m:ci>Ω</m:ci>
		    </m:apply>
		</m:apply>
	   </m:math>
	   is zero outside the interval
	  <m:math>
   	      <m:interval>
		  <m:apply>
		      <m:minus/>
		      <m:ci><m:msub><m:mi>Ω</m:mi><m:mi>g</m:mi></m:msub></m:ci>
		  </m:apply>
		<m:ci><m:msub><m:mi>Ω</m:mi><m:mi>g</m:mi></m:msub></m:ci>
	      </m:interval>
          </m:math>. Equivalentely we can state that the signal has no angular frequencies above
	  <m:math><m:ci><m:msub><m:mi>Ω</m:mi><m:mi>g</m:mi></m:msub></m:ci></m:math>, corresponding
	  to no frequencies above
	  <m:math>
	      <m:apply>
		  <m:eq/>
	          <m:ci><m:msub><m:mi>F</m:mi><m:mi>g</m:mi></m:msub></m:ci>
		  <m:apply>
		      <m:divide/>
		      <m:ci><m:msub><m:mi>Ω</m:mi><m:mi>g</m:mi></m:msub></m:ci>
		      <m:apply>
		          <m:times/>
			  <m:cn>2</m:cn>
			  <m:pi/>
		      </m:apply>
		  </m:apply>
	      </m:apply>
	   </m:math>.

	</para><!-- End para s1p2-->

	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1p3">
	    Now let's take a look at the sampled signal in the frequency domain.
	    While <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11423">proving</cnxn> the sampling theorem we found the the spectrum of the sampled
	    signal consists of a sum of shifted versions of the analog spectrum. Mathematically this is 
	    described by the following equation:

	    <equation xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="eqn1"><m:math>
		<m:apply>
		    <m:eq/>
		     <m:apply><!--Start left side of eqn-->
		         <m:ci><m:msub><m:mi>X</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			 <m:apply>
			     <m:exp/>
			     <m:apply>
			         <m:times/>
				 <m:imaginaryi/>
				 <m:ci>Ω</m:ci>
				 <m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			      </m:apply>
			 </m:apply>
		     </m:apply><!--End left side of eqn-->
		
		     <m:apply><!--Start right side of eqn-->
		         <m:times/>
			 <m:apply>
			     <m:divide/>
			     <m:cn>1</m:cn>
			     <m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			 </m:apply>
	          	 <m:apply><!--Start sum-->			
			     <m:sum/>
			     <m:bvar><m:ci>k</m:ci></m:bvar><!--Summation variable-->
			     <m:lowlimit><m:cn>-∞</m:cn></m:lowlimit>
			     <m:uplimit><m:ci>∞</m:ci></m:uplimit>
			     <m:apply>
			         <m:times/>
			         <m:ci>X</m:ci>
				 <m:apply>
				     <m:times/>
				     <m:imaginaryi/>
				     <m:apply>
				         <m:apply>
					     <m:plus/>
					     <m:ci>Ω</m:ci>
					     <m:apply>
					         <m:divide/>
						 <m:apply>
						     <m:times/>
						     <m:cn>2</m:cn>
						     <m:pi/>
						     <m:ci>k</m:ci>
						 </m:apply>
						 <m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
					     </m:apply>
					 </m:apply>
				     </m:apply>
	                	 </m:apply>
			     </m:apply>
			 </m:apply><!--End sum-->
		     </m:apply><!--End right side of equation-->
		 </m:apply>	
	     </m:math></equation>
	     </para><!--End para s1p3-->
	     
	     
	    <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1ss1">
	        <name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Sampling fast enough</name>
		<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1s1p1">
		    In <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f3"/> we show the result of sampling
		    <m:math><m:apply><m:ci>x</m:ci><m:ci>t</m:ci></m:apply></m:math> according to 
		    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11419" target="s4">the sampling theorem</cnxn>.
		    This means that when sampling the signal in <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f1"/>/<cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f2"/> we use
		    <m:math>
			<m:apply>
			    <m:geq/>
			    <m:ci><m:msub><m:mi>F</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			    <m:apply>
				<m:times/>
				<m:cn>2</m:cn>
				<m:ci><m:msub><m:mi>F</m:mi><m:mi>g</m:mi></m:msub></m:ci>
			    </m:apply>
			</m:apply>
		    </m:math>.
		    Observe in <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f3"/> that we have the same spectrum as in <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f2"/>
		    for 
		    <m:math>
			<m:apply>
			    <m:in/>
			    <m:ci>Ω</m:ci>
			    <m:interval>
				<m:ci><m:msub><m:mi>-Ω</m:mi><m:mi>g</m:mi></m:msub></m:ci>
				<m:ci><m:msub><m:mi>Ω</m:mi><m:mi>g</m:mi></m:msub></m:ci>
			    </m:interval>
			</m:apply>
		    </m:math>, except for the scaling factor
		    <m:math>
			<m:apply>
			   <m:divide/>
			   <m:cn>1</m:cn>
			   <m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			</m:apply>		    
		    </m:math>.		    

		    This is a consequence of the sampling frequency. As mentioned in the
		    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11423" target="l1">proof</cnxn> the spectrum of the sampled signal
		    is periodic with period
		    <m:math>
			<m:apply>
			    <m:eq/>
			    <m:apply>
				<m:times/>
				<m:cn>2</m:cn>
				<m:pi/>
				<m:ci><m:msub><m:mi>F</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			    </m:apply>
			    <m:apply>
				<m:divide/>
				<m:apply>
				    <m:times/>
				    <m:cn>2</m:cn>
				    <m:pi/>
				</m:apply>
				<m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			    </m:apply>
			</m:apply>	
		    </m:math>.
		    
		     <figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="f3">
	    	    	<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="image/jpg" src="spektrum_3.jpg"/>
		    	<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
		    	    The spectrum
		    	    <m:math><m:ci><m:msub><m:mi>X</m:mi><m:mi>s</m:mi></m:msub></m:ci></m:math>. Sampling
		    	    frequency is OK.
		    	</caption>
	    	    </figure>

		</para><!--End para s1s1p1-->
		<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1ss1p2">
		    
		    So now we are, according to <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11419" target="s4"> the sample theorem</cnxn>,
		    able to reconstruct the original signal <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">exactly</emphasis>. How we can do this
		    will be explored further down under <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="s2">reconstruction</cnxn>. But first we
		    will take a look at what happens when we sample too slowly.
		</para>

	    </section><!--End section 1, subsection 1-->

	    <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1ss2">
	        <name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Sampling too slowly</name>
		<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1ss2p1">
		    If we sample <m:math><m:apply><m:ci>x</m:ci><m:ci>t</m:ci></m:apply></m:math> too slowly,
		    that is
		     <m:math>
			<m:apply>
			    <m:lt/>
			    <m:ci><m:msub><m:mi>F</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			    <m:apply>
				<m:times/>
				<m:cn>2</m:cn>
				<m:ci><m:msub><m:mi>F</m:mi><m:mi>g</m:mi></m:msub></m:ci>
			    </m:apply>
			</m:apply>
		    </m:math>, we will get overlap between the repeated spectra, 
		    see <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f4"/>.
		    According to
		    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="eqn1"/> the resulting spectra is the sum of these. This overlap
		    gives rise to the concept of aliasing.
		</para>
		    
		<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1ss2p2">
		    <note xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="aliasing">
		     	If the sampling frequency is less than twice the highest frequency component, 
		     	then frequencies in the original signal that are above half the sampling rate will be "aliased" 
		     	and will appear in the resulting signal as lower frequencies. 
		    </note>
		</para>
		<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1ss2p3">
		 
		    The consequence of aliasing is that we cannot recover the original signal,
		    so aliasing has to be avoided.
		    Sampling too slowly will produce a sequence 
		    <m:math>
			<m:apply>
			    <m:ci><m:msub><m:mi>x</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			    <m:ci>n</m:ci>
			</m:apply>
		    </m:math>
	    that could have orginated from a number of signals. So there is <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">no</emphasis> chance
	    of recovering the original signal.
		    To learn more about aliasing, take a look at this <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11448">module</cnxn>.
		    (Includes an applet for demonstration!)
		</para>

		    <figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="f4">
		        <media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="image/jpg" src="spektrum_2.jpg"/>
		        <caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">The spectrum
		            <m:math><m:ci><m:msub><m:mi>X</m:mi><m:mi>s</m:mi></m:msub></m:ci></m:math>. Sampling
			    frequency is too low.
		        </caption>
		    </figure> 		    

		<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1ss2p4">
		    To avoid aliasing we have to sample fast enough. But if we can't sample fast enough
		    (possibly due to costs) we can include an Anti-Aliasing filter. This will
		    not able us to get an exact reconstruction but can still be a good solution.
		</para>
		<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s1ss2p5">
		    <note xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="Anti-Aliasing filter">
		        Typically a low-pass filter that is applied before sampling to ensure that no 
			components with frequencies greater than half 
		        the sample frequency remain.
		    </note>
		</para>
		<example xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exa3">
		    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exa3p1">
		        <term xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">The stagecoach effect</term>
		    </para>
		    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exa3p2">
		        In older western movies you can observe aliasing on a stagecoach
			when it starts to roll. At first the spokes appear to
			turn forward, but as the stagecoach increase its speed the spokes
			appear to turn backward. This comes from the fact that the sampling rate,
			here the number of frames per second, is too low. We can view
			each frame as a sample of an image that is changing continuously
			in time. (<link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://flowers.ofthenight.org/wagonWheel/wagonWheel.html">Applet illustrating the stagecoach effect</link>)
			
		    </para>
		    
		</example>
	    </section><!--End section 1, subsection 2-->
	

    </section><!--End section s1-->


    <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s2">
	<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Reconstruction</name>
        <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s2p1">
	    Given the signal in <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f3"/> we want to recover the original signal, but
	    the question is how? 
	</para>
	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s2p2">
	    When there is no overlapping in the spectrum, the spectral
	    component given by <m:math><m:apply><m:eq/><m:ci>k</m:ci><m:cn>0</m:cn></m:apply></m:math>
	    (see <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="eqn1"/>),is equal to the spectrum of the analog signal. This offers an
	    oppurtunity to use a simple reconstruction process. Remember what you have learned about filtering.
	    What we want is to change signal in <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f3"/> into that of <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f2"/>.
	    To achieve this we have to remove all the extra components generated in the sampling process.
	    To remove the extra components we apply an ideal analog low-pass filter as shown in
	    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" target="f5"/>
	    As we see the ideal filter is rectangular in the frequency domain. A rectangle in the frequency
	    domain corresponds to a 
	    <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://ccrma-www.stanford.edu/~jos/Interpolation/sinc_function.html">sinc</link>  
	    function in time domain (and vice versa).
	    <figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="f5">
	        <media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="image/jpg" src="recon_filter.jpg"/>
		<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
		    <m:math>
		        <m:apply>
			    <m:ci>H</m:ci>
			    <m:apply>
			        <m:times/>
				<m:imaginaryi/>
				<m:ci>Ω</m:ci>
			    </m:apply>
			</m:apply>
		    </m:math>
		    The ideal reconstruction filter.
	        </caption>
	    </figure>
	</para>
	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s2p3">
	    Then we have reconstructed the original spectrum, and as we know <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">if two signals are identical
	    in the frequency domain, they are also identical in the time domain</emphasis>. End of reconstruction.	

	</para>


    </section>
    
    <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s3">
	<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Conclusions</name>
        <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s3p1">
	    The Shannon sampling theorem requires that the input signal prior to sampling
	    is band-limited to at most half the sampling frequency. Under this condition
	    the samples give an exact signal representation. It is truly remarkable
	    that such a broad and useful class signals can be represented that easily!
	</para>
	<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s3p2">
	    We also looked into the problem of reconstructing the signals form its samples.
	    Again the simplicity of the <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">principle</emphasis> is striking:
	    linear filtering by an ideal low-pass filter will do the job. However,
	    the ideal filter is impossible to create, but that is another story...
	    
	</para>

    </section>
    <section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s4">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s4p1">
          Go to?
          <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="s0l2" type="inline">
		  <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11419">Introduction</cnxn></item>
		  <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11423">Proof</cnxn></item>
                  <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11443">Illustrations</cnxn></item>
                  <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11549">Matlab Example</cnxn></item>
                  <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11448">Aliasing applet</cnxn></item>
		  <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11458">Hold operation</cnxn></item>
  		  <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11465">System view</cnxn></item>
            	  <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m11442">Exercises</cnxn></item>	
	   </list>
    </para>
    </section>
    



    </content>

</document>
