🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: sci.math.num-analysis
2 messages
2 total messages Started by Jim Streicher Wed, 08 Apr 1992 17:14
WANTED: digital filter source code
#259
Author: Jim Streicher
Date: Wed, 08 Apr 1992 17:14
19 lines
1010 bytes
I am looking for source code examples (C, fortran, or pascal)
of digital filtering. 

None of the "classic" books I have been referred to give any
program examples.

Specifically, I need a low pass filter (30-40 hz cutoff) for
a data set sampled at 100 hz. 

Does anyone have any suggestions? 


Jim Streicher
jim@heart.seas.upenn.edu


ps if this type of request does not belong in this group
please let me know. I'll search elsewhere.
Re: WANTED: digital filter source code
#261
Author: dmatthews
Date: Wed, 08 Apr 1992 20:26
25 lines
1620 bytes
In article <73276@netnews.upenn.edu>, jim@heart.circ.upenn.edu (Jim Streicher) writes:
>
>I am looking for source code examples (C, fortran, or pascal)
>of digital filtering. 
>
>None of the "classic" books I have been referred to give any
>program examples.
>
>Specifically, I need a low pass filter (30-40 hz cutoff) for
>a data set sampled at 100 hz. 
>
...
If this is not a real-time problem, the easiest way and the one that gives you
the most control is to filter in the frequency domain.  There you can create
your filter to have the exact characteristics you want, multiply it by the
data, and transform the result back to the time domain.  It is a good idea to
look at the impulse response of your filter (the absolute value of its
transform) to see that it does not produce spurious ringing in the filtered
data or otherwise unacceptably distort sudden changes. This method is treated
inadequately or not at all in the few texts I have looked at.  I don't have any
actual code you could use, sorry. 

Dr. David L. Matthews, IPST, Univ. of Maryland, College Park MD 20742-2431 
Telephone  (301)405-4830	Internet   dmatthews@uap.umd.edu
FAX 	   (301)314-9363	NSI/SPAN   UMDUAP::DMATTHEWS
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads