User:GabrielaV: Difference between revisions
(275 intermediate revisions by 48 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 |
Find the first two orthonormal polynomials on the interval [-1,1] |
||
1. What is |
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 |
::<math>\bold a = \sqrt{\frac {3}{2}} </math> |
||
5. Now that we know what the first two |
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( |
::<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 57: | Line 56: | ||
The summation becomes integration, the harmoinic frequency becomes a continuous frequency, and the incremental spacing becomes a differential separation. |
The summation becomes integration, the harmoinic frequency becomes a continuous frequency, and the incremental spacing becomes a differential separation. |
||
::<math> \sum_{k=-\infty}^\infty\to\int_{-\infty}^\infty</math> |
::<math> \sum_{k=-\infty}^\infty\to\int_{-\infty}^\infty</math> |
||
::<math> {{k\over T}\to |
::<math> {{k\over T}\to f}</math> |
||
::<math> {1/T}\to |
::<math> {1/T}\to df</math> |
||
The result is |
The result is |
||
::<math>\lim_{T\to\infty}=\int_{-\infty}^\infty{[\int_{-\infty}^\infty x(u)e^{-j2\pi fu}du]}e^{j2\pi ft} |
::<math>\lim_{T\to\infty}=\int_{-\infty}^\infty {\left[\int_{-\infty}^\infty x(u)e^{-j2\pi fu}du\right]} e^{j2\pi ft}df</math> |
||
The term in the brackets is the ''Fourier transfrom'' of ''x(t)'' |
|||
::<math> |
|||
\mathcal{F}[x(t)]=X(f) |
|||
</math> |
|||
Inverse ''Fourier transform'' |
|||
::<math>x(t)=\mathcal{F}^{-1}[X(f)]</math> |
|||
==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 |
|||
<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) |
|||
[[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. |
|||
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 benefit of using oversampling is that this allows for more samples to be taken. |
|||
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> |
|||
[[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> |
|||
==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. |
|||
<math>h(mT) = T \int_{-f}^f \hat H (f) e^{j 2 \pi f m t} df </math> |
|||
is the coefficient that are sent out of the D/A converter. |
|||
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> |
|||
The actual frequency response is |
|||
<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> |
|||
[https://fweb.wwc.edu/index.php/Image:Frequency_Response_Pict.png] 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. |
|||
[[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.