User:GabrielaV: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
 
(199 intermediate revisions by 47 users not shown)
Line 1: Line 1:
== Welcome to Gabriela's Wiki page ==
== Welcome to Gabriela's Wiki page ==


Line 12: Line 11:
====Example====
====Example====


Find the first two orthogonormal polynomials on the interval [-1,1]
Find the first two orthonormal polynomials on the interval [-1,1]


1. What is orthogonormal?
1. What is orthonormal?
[http://cubex.wwc.edu/~frohro/wiki/index.php/Orthogonal_functions#Normalization]
[http://cubex.wwc.edu/~frohro/wiki/index.php/Orthogonal_functions#Normalization]


Line 35: Line 34:


::<math> <bt+c|bt+c>= \int_{-1}^1 (bt+c)^2 dt=1 </math>
::<math> <bt+c|bt+c>= \int_{-1}^1 (bt+c)^2 dt=1 </math>
::<math>\bold b= \sqrt (\frac {3}{2}) </math>
::<math>\bold a = \sqrt{\frac {3}{2}} </math>




5. Now that we know what the first two orthogonormal polynomials!
5. Now that we know what the first two orthonormal polynomials!


== Fourier Transform==
== Fourier Transform==


As previously discussed, ''Fourier series'' is an expansion of a periodic function therefore we can not use it to transform a non-periodic funciton from time to the frequency domain. Fortunately the ''Fourier'' ''transform'' allows for the transformation to be done on a non-periodic function.
As previously discussed, ''Fourier series'' is an expansion of a periodic function therefore we can not use it to transform a non-periodic funciton from time to the frequency domain. Fortunately the ''Fourier'' ''transform'' allows for the transformation to be done on a non-periodic function. The ''Fourier transform'' allows to change a function from the time domain to frequency domain or the ''inverse fourier transform'' from frequency domain to time domain.




Line 51: Line 50:


where
where
::<math>\bold \alpha_k={1/T}\int_{-{T\over 2}}^{{T\over 2}} x(u) e^{-j2\pi ku\over T}du</math>
::<math>\bold \alpha_k={1/T}\int_{-{T\over 2}}^{{T\over 2}} x(t) e^{-j2\pi kt\over T}dt</math>


If we let
If we let
Line 70: Line 69:
Inverse ''Fourier transform''
Inverse ''Fourier transform''
::<math>x(t)=\mathcal{F}^{-1}[X(f)]</math>
::<math>x(t)=\mathcal{F}^{-1}[X(f)]</math>



==How a CD Player Works==
==How a CD Player Works==
The first step on how a CD player works is that it reads <math>\sum_{n=-\infty}^\infty \ x(nt) \delta (t-nT)</math> from the CD.
The first step on how a CD player works is that it takes data from the cd that is mathmatically represented by
<math>\sum_{n=-\infty}^\infty \ x(nt) \delta (t-nT)</math>
The data then goes through the Digital to Analog Converter and it is convolved with
<math>\ p(t) </math> ( See figure below)


The data then goes through the Digital to Analog Converter and it is convolved with <math>\ p(t) </math>.
[[Image:barnsaDA.jpg|Digital to analog conversion]]The result is <math>\sum_{n=-\infty}^\infty \ x(nt) \ p(t-nT) </math>


As you can see in the Frequency domain the final result does not appear to look like the original signal.
[[http://www.wwc.edu/%7Efrohro/ClassNotes/ENGR455/2005/Keystone/index.php?image=20051021KeyPA210080.jpg&originalimage=true&d=d.html]]
Therefore we pass <math> P(f)\cdot \frac{1} {T}\sum_{m=-\infty}^\infty X(f-\frac{m} {T}) </math> through a low pass filter to knock out the high frequencies.


==2x Oversampling(Interperolating FIR filter)==
The result is <math>\sum_{n=-\infty}^\infty \ x(nt) \ p(t-nT) </math>
The benefit of using oversampling is that this allows for more samples to be taken.
[[http://www.wwc.edu/~frohro/ClassNotes/ENGR455/2005/Keystone/20051021KeyPA210081.jpg]]


We have <math> \sum_{k= -\infty}^ \infty \ x(nT) \delta (t-nT) </math> in the time domain and we convolve it with <math> \sum_{m= -M}^ M h(\frac {mT}{2}) \delta (t-\frac {mT}{2}) </math>
As you can see in the Frequency domain the final result does not appear to look like the original signal. Therefore we pass <math> P(f)\cdot \frac{1} {T}\sum_{m=-\infty}^\infty X(f-\frac{m} {T}) </math> through a low pass filter to knock out the high frequencies and then it will be outputted through the speaker.
[[Image:2x01.jpg|Illustration of 2x Oversampling pt.1]] which equals <math>\sum_{k= -\infty}^ \infty \ x(nT) h(\frac {mT}{2}) \delta (t-nT- \frac{mT}{2})</math>
[[Image:2x02.jpg|Illustration of 2x Oversampling pt.2]]
If we let <math> (\frac{l}{2}) = (n +(\frac{m}{2}))</math> therefore, <math> n = (\frac{l-m}{2}) </math> which makes <math> \hat y (t) = \sum_{l=-\infty}^\infty \left ( \sum_{m=-M}^M x \left (\frac{l-m}{2} T \right) h \left(\frac{mT}{2} \right) \right) \delta \left (t - \frac{lT}{2} \right)</math>




==2x Oversampling==
The benefit of using oversampling is that this allows for more samples to be taken so you have an accurate digital signal which means better sound.


We have <math> \sum_{k= -\infty}^ \infty \ x(nT) \delta (t-nT) </math> [[http://www.wwc.edu/%7Efrohro/ClassNotes/ENGR455/2005/Keystone/thumb/80020051026KeyPA260093.jpg]]
:but we want <math> \sum_{l=-\infty}^\infty (\sum_{m=-M}^M \ x (\frac {(l-m)T}{2}) h(\frac{mT}{2}))\delta(t-\frac{lT}{2})</math>[[http://www.wwc.edu/%7Efrohro/ClassNotes/ENGR455/2005/Keystone/thumb/80020051026KeyPA260095.jpg]]
In order to get that we need to convolve it with <math> \sum_{m= -M}^ M h(\frac {mT}{2}) \delta (t-\frac {mT}{2}) </math>


==FIR filter==
now we convolve <math> \sum_{l=-\infty}^\infty (\sum_{m=-M}^M \ x (\frac {(l-m)T}{2}) h(\frac{mT}{2}))\delta(t-\frac{lT}{2})</math> with <math> p(2t) </math> to then get
FIR stands for finite impulse response and it is one of two digital signal filters used.
<math> \sum_{l=-\infty}^{\infty} y(\frac{lT}{2})p(2(t-\frac{lT}{2}) </math>
The FIR has no feedback so eventually it will have new data and the old one will be thrown away.
and in the frequency domain it is <math> \frac{1}{2} P(\frac{f}{2})\sum_{l=-\infty}^{\infty} y(\frac{lT}{2})e^{-js\pi f l T/2}</math>
<math>h(mT) = T \int_{-f}^f \hat H (f) e^{j 2 \pi f m t} df </math>
[[http://www.wwc.edu/%7Efrohro/ClassNotes/ENGR455/2005/Keystone/thumb/80020051028KeyPA280111.jpg]]
is the coefficient that are sent out of the D/A converter.
Now you only have to pass it through a low pass filter and you will have the original signal.
H(f) is the frequency response which mathmatically is <math> H(f)=\sum_{m=-M}^{M}h(mT)e^{-j 2 \pi f m T} </math>


===FIR Application===
Design an FIR low pass filter to pass between <math> -\frac{1}{4T} < f < \frac{1}{4T} </math> and reject the rest.
<math> H_{hat} = 1 \begin{cases} 1, & |f| \le \frac{1}{4T} \\ 0, & else \end{cases} </math>
:<math> h(mT) = T \int_{\frac{-1}{4T}}^{\frac{1}{4T}} 1 e^{j 2 \pi f m t} df = T\frac{e^{j 2 \pi \frac{1}{4T} m T} - e^{j 2 \pi \frac{-1}{4T} m T}}{j 2 \pi m T}</math>


:<math> = \left ( \frac{1}{2} \right) \frac{sin \left ( \frac{\pi m}{2} \right)} {\left(\frac{\pi m}{2}\right)}</math>
==FINITE-IMPULSE REPONSE(FIR) FILTER ==

A FIR is one of two digital filters that is commonly used.
The actual frequency response is
This is that data
<math>\sum_{n=-\infty}^\infty \ x(nt) \delta (t-nT)</math>
<math>\sum_{m=-M}^M h(mT) e^{- j 2 \pi f m T} = \sum_{m=-M}^M \frac{ sin \left ( \frac{\pi m}{2} \right) }{\pi m} e^{- j 2 \pi f m T} </math>

it is convolved with
[https://fweb.wwc.edu/index.php/Image:Frequency_Response_Pict.png] shows the example in Matlab
:<math> h(t)=\sum_{l=-M}^M h(mT/2) \delta(t-mT/2) </math>

==Adaptive Filter==
An Adaptive Fitler is useful when filtering needs to be done and the transfer function of the noise signal is not known. The adaptive filter uses feedback to filter out the noise signal. The objective is to drive the error to zero.
[[Image:Afilter.jpg]]
===Adaptive Filter Application===
A pilot and a co-pilot are trying to communicate, but there is a problem because
the microphone picks up the engine noise.
What to do? Use an adaptive filter to eliminate the unwanted noise.
We need two microphones.
* engine noise+voice ( unknown transfer function)
* engine noise ( microphone by the engine)
both signals will pass through a low pass filter and then through a Analog to Digital
converter.
:r(n)=s(n)+ nf(n) engine noise+voice
:x(n) engine noise
Following the adaptive filter block diagram x(n) will go to FIR <math> h_{n}(k) </math> and the coefficient adjust.
:-r(n) and y(n) will both go to the summation.
e(n) will then go to the co-pilot's earphone and the coefficient adjust until e(n) is zero.

[http://www.wwc.edu/~frohro/ClassNotes/ENGR455/2005/Keystone/thumb/80020051130KeyPB300080.jpg]

Latest revision as of 13:49, 11 November 2007

Welcome to Gabriela's Wiki page

Introduction

Do you want to know how to contact me or find out some interesting things about me? [[1]]

Signals & Systems

Example

Find the first two orthonormal polynomials on the interval [-1,1]

1. What is orthonormal? [2]

2. What is orthogonal? [3]

3. What is a polynomial? [4]

        
        

4. Now we can find the values for the unknown variables.



5. Now that we know what the first two orthonormal polynomials!

Fourier Transform

As previously discussed, Fourier series is an expansion of a periodic function therefore we can not use it to transform a non-periodic funciton from time to the frequency domain. Fortunately the Fourier transform allows for the transformation to be done on a non-periodic function. The Fourier transform allows to change a function from the time domain to frequency domain or the inverse fourier transform from frequency domain to time domain.


In order to understand the relationship between a non-periodic function and it's counterpart we must go back to Fourier series. Remember the complex exponential signal? [5]

where

If we let

The summation becomes integration, the harmoinic frequency becomes a continuous frequency, and the incremental spacing becomes a differential separation.

The result is

The term in the brackets is the Fourier transfrom of x(t)

Inverse Fourier transform

How a CD Player Works

The first step on how a CD player works is that it takes data from the cd that is mathmatically represented by The data then goes through the Digital to Analog Converter and it is convolved with ( See figure below)

File:BarnsaDA.jpgThe result is

As you can see in the Frequency domain the final result does not appear to look like the original signal. Therefore we pass through a low pass filter to knock out the high frequencies.

2x Oversampling(Interperolating FIR filter)

The benefit of using oversampling is that this allows for more samples to be taken.

We have in the time domain and we convolve it with File:2x01.jpg which equals File:2x02.jpg If we let therefore, which makes



FIR filter

FIR stands for finite impulse response and it is one of two digital signal filters used. The FIR has no feedback so eventually it will have new data and the old one will be thrown away. is the coefficient that are sent out of the D/A converter. H(f) is the frequency response which mathmatically is

FIR Application

Design an FIR low pass filter to pass between and reject the rest.

The actual frequency response is

[6] shows the example in Matlab

Adaptive Filter

An Adaptive Fitler is useful when filtering needs to be done and the transfer function of the noise signal is not known. The adaptive filter uses feedback to filter out the noise signal. The objective is to drive the error to zero. File:Afilter.jpg

Adaptive Filter Application

A pilot and a co-pilot are trying to communicate, but there is a problem because the microphone picks up the engine noise. What to do? Use an adaptive filter to eliminate the unwanted noise. We need two microphones.

  • engine noise+voice ( unknown transfer function)
  • engine noise ( microphone by the engine)

both signals will pass through a low pass filter and then through a Analog to Digital converter.

r(n)=s(n)+ nf(n) engine noise+voice
x(n) engine noise

Following the adaptive filter block diagram x(n) will go to FIR and the coefficient adjust.

-r(n) and y(n) will both go to the summation.

e(n) will then go to the co-pilot's earphone and the coefficient adjust until e(n) is zero.

[7]