Revision as of 23:03, 1 October 2009 by Dlamba (Talk | contribs)

Filtering

Introduction

Filtering in a broad sense, is a method of removing any unwanted quantity from a mixture of the desired quantity and the undesired quantity. In the world of signals, this generally applies to the process of either separating different channels of a signal, or removing a noise signal to get the original signal.

This usually makes more sense when we talk about something real. Say, music, or images, or surprisingly, even the stock market! That's right. It is possible, from simple spectral analysis to "filter" out long-term and short term trends from any time varying data. This includes weather, astronomical events, and pretty much any time-varying signal you can think of.

Simple Example

Example.jpg

  • I always like to start out with our friendly sine wave. After all, that is what Fourier started with too.
  • So, what we do is start by taking a clean sine wave from -2pi to 2pi
  • To the sine wave, we add some pretty ugly Gaussian noise, shown above.
  • What results is a much noisier signal, as can be clearly seen.

To try this yourself, you can plop the following in an m-file

clear all;
close all;

clc;

t = [-2*pi:.001:2*pi];
signal = sin(t);
plot(t,sin(t));
grid minor;

noise = randn(1,length(t));
noise = noise/10;
figure;
plot(t,noise);
grid minor;

mixed = noise + signal;
figure;
plot(t,mixed)
grid minor;


  • Now if someone presented us an ugly signal like that, we can without panic simply get the original signal back

Alumni Liaison

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood