<?xml version="1.0" encoding="utf-8"?>
<!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:m="http://www.w3.org/1998/Math/MathML" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="m0530">

  <name>Time-Domain System Example Two</name>

  <metadata>
  <md:version>2.7</md:version>
  <md:created>2000/08/09</md:created>
  <md:revised>2004/08/10 13:30:55.059 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="dhj">
      <md:firstname>Don</md:firstname>
      
      <md:surname>Johnson</md:surname>
      <md:email>dhj@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="mselik">
      <md:firstname>Melissa</md:firstname>
      
      <md:surname>Selik</md:surname>
      <md:email>mselik@alumni.rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="dhj">
      <md:firstname>Don</md:firstname>
      
      <md:surname>Johnson</md:surname>
      <md:email>dhj@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>equation difference</md:keyword>
    <md:keyword>Domain Time</md:keyword>
    <md:keyword>filter boxcar</md:keyword>
  </md:keywordlist>

  <md:abstract>Defines Finite Impulse Response systems.
</md:abstract>
</metadata>

  <content>

    <figure id="fig1002">
      <media type="image/png" src="sig22.png"/> 
      <caption>
	The plot shows the unit-sample response of a length-5 boxcar
	filter.
      </caption>
    </figure>                                    

    <example id="ex2001">
      <para id="para1">
	A somewhat different system has no "a" coefficients.  Consider
      the difference equation

	<equation id="eq0003">
	  <m:math>
	    <m:apply>
	      <m:eq/>
	      <m:apply>
		<m:ci type="fn">y</m:ci>
		<m:ci>n</m:ci>
	      </m:apply>
	      <m:apply>
		<m:times/>
		<m:apply>
		  <m:divide/>
		  <m:cn>1</m:cn>
		  <m:ci>q</m:ci>
		</m:apply>
		<m:apply>
		  <m:plus/>
		  <m:apply>
		    <m:ci type="fn">x</m:ci>
		    <m:ci>n</m:ci>
		  </m:apply>
		  <m:ci>…</m:ci>
		  <m:apply>
		    <m:ci type="fn">x</m:ci>
		    <m:apply>
		      <m:plus/>
		      <m:apply>
			<m:minus/>
			<m:ci>n</m:ci>
			<m:ci>q</m:ci>
		      </m:apply>
		      <m:cn>1</m:cn>
		    </m:apply>
		  </m:apply>
		</m:apply>
	      </m:apply>
	    </m:apply>
	  </m:math>
	</equation>

	Because this system's output depends only on current and
	previous input values, we need not be concerned with initial
	conditions.  When the input is a unit-sample, the output equals
	<m:math>
	  <m:apply>
	    <m:divide/>
	    <m:cn>1</m:cn>
	    <m:ci>q</m:ci>
	  </m:apply>
	</m:math> 
	for 
	<m:math>
	  <m:apply>
	    <m:in/>
	    <m:ci>n</m:ci>
	    <m:set>
	      <m:cn>0</m:cn>
	      <m:ci>…</m:ci>
	      <m:apply>
		<m:minus/>
		<m:ci>q</m:ci>
		<m:cn>1</m:cn>
	      </m:apply>
	    </m:set>
	  </m:apply>
	</m:math>
	, then equals zero thereafter.  Such systems are said to be
	<term>FIR</term> (Finite Impulse Response) because their unit
	sample responses have finite duration.  Plotting this response
	(<cnxn target="fig1002" strength="9"/>) shows that the
	unit-sample response is a pulse of width
	<m:math><m:ci>q</m:ci></m:math> and height
	<m:math>
	  <m:apply>
	    <m:divide/>
	    <m:cn>1</m:cn>
	    <m:ci>q</m:ci>
	  </m:apply>
	</m:math>.  This waveform is also known as a boxcar, hence the
	name <term>boxcar filter</term> given to this system.  (We'll
	derive its frequency response and develop its filtering
	interpretation in the next section.)  For now, note that the
	difference equation says that each output value equals the
	<emphasis>average</emphasis> of the input's current and
	previous values.  Thus, the output equals the running average
	of input's previous <m:math><m:ci>q</m:ci></m:math> values.
	Such a system could be used to produce the average weekly
	temperature (
	<m:math>
	  <m:apply>
	    <m:eq/>
	    <m:ci>q</m:ci>
	    <m:cn>7</m:cn>
	  </m:apply>
	</m:math>
	) that could be updated daily.  
      </para>
    </example>   

  </content>
</document>
