3
votes

I'm looking for a digital/analog chebyshev low pass filter for a windows forms project, preferably in c#, c++ or c. A pseudocode would be helpful as well.

3
Which filter exactly? (Order?) If you know the parameters you can implement it using an fft library such as FFTW (fftw.org) - sinelaw
Is this some homework? If so, please explicitly state it. - pyon
For what kind of filter implementation are you looking: IIR (order?, which form), FIR, FFT overlap-save/add, or ??? - hotpaw2

3 Answers

4
votes

Here's a web app by Tony Fisher that computes the coefficients for digital filters (common FIR and IIR types), plots the filter magnitude and phase response, and even creates an ANSI C function template:

http://www-users.cs.york.ac.uk/~fisher/mkfilter

and also analog filter design:

http://www-users.cs.york.ac.uk/~fisher/lcfilter

1
votes

The fact that the filter is Chebyshev just determines the filter coefficients. The actual implementation is pretty much independent of the coefficients. You need a decent filter design package to generate the coefficients (since the coefficients are dependent on the various filter parameters and the chosen sampling frequency), and then it's up to you how you implement the actual filter, but there are various standard forms.

You might want to get a decent DSP text book or two if you're serious about doing this kind of thing.

-1
votes

Here is an efficient c# code example chebyshev filter using NMath's fft. Generating the filter coefficients isn't hard and can easily be done w/ an on-line too or with a reference book.