473,215 Members | 1,269 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,215 software developers and data experts.

FIR filtering

Hi all,
i'm looking for a module to implement a digital FIR filter!
Can anyone help me?

Thanks,

Vincent

Mar 15 '06 #1
16 13820
LabWINC wrote:
i'm looking for a module to implement a digital FIR filter!
Can anyone help me?


Is this for homework, for academic interest, for a control system
problem, or what? Some context would be useful in helping us answer.

(The first thing that occurs to me, for example, is "why don't you just
write it yourself? ...it's not like they're a complicated equation and
if you have the coefficients, you practically have the code already."
But that might not be the best approach if this is a real-world situation.)

-Peter

Mar 15 '06 #2
It's for research work. I'm implementing an algorithm from a matlab
one.
It could be very difficult to find the fir coefficients because i have
lot of fileters to implement.

Vincent

Mar 15 '06 #3
LabWINC wrote:
Hi all,
i'm looking for a module to implement a digital FIR filter!
Can anyone help me?

Thanks,

Vincent

gnuradio?

Hans Georg
Mar 15 '06 #4
What's gnuradio?

Mar 15 '06 #5
LabWINC wrote:
What's gnuradio?

http://www.gnu.org/software/gnuradio/

It's a c++ lib with a python wrapper.

BTW, thats the first hit in google ...

Hans Georg
Mar 15 '06 #6
LabWINC wrote:
What's gnuradio?


Google dead again? Boy, must be one of these days...

Diez
Mar 15 '06 #7
I can't understand how gnuradio can help me...
I find scipy is the only way to implement a good FIR.

Thanks,

Vincent

Mar 15 '06 #8
>>>>> "LabWINC" == LabWINC <vi*****************@gmail.com> writes:

LabWINC> Hi all, i'm looking for a module to implement a digital
LabWINC> FIR filter! Can anyone help me?

scipy.org

Between scipy and matplotlib, you'll feel quite comfortable with
python as a former matlab user

help scipy.filter (see FIR filter design below)

DESCRIPTION
Signal Processing Tools
=======================

Convolution:

convolve -- N-dimensional convolution.
correlate -- N-dimensional correlation.
fftconvolve -- N-dimensional convolution using the FFT.
convolve2d -- 2-dimensional convolution (more options).
correlate2d -- 2-dimensional correlation (more options).
sepfir2d -- Convolve with a 2-D separable FIR filter.
B-splines:

bspline -- B-spline basis function of order n.
gauss_spline -- Gaussian approximation to the B-spline basis
function.
cspline1d -- Coefficients for 1-D cubic (3rd order)
B-spline.
qspline1d -- Coefficients for 1-D quadratic (2nd order)
B-spline.
cspline2d -- Coefficients for 2-D cubic (3rd order)
B-spline.
qspline2d -- Coefficients for 2-D quadratic (2nd order)
B-spline.

Filtering:

order_filter -- N-dimensional order filter.
medfilt -- N-dimensional median filter.
medfilt2 -- 2-dimensional median filter (faster).
wiener -- N-dimensional wiener filter.

symiirorder1 -- 2nd-order IIR filter (cascade of first-order
systems).
symiirorder2 -- 4th-order IIR filter (cascade of
second-order systems).
lfilter -- 1-dimensional FIR and IIR digital linear
filtering.

deconvolve -- 1-d deconvolution using lfilter.

hilbert --- Compute the analytic signal of a 1-d signal.
get_window --- Create FIR window.

detrend --- Remove linear and/or constant trends from
data.
Filter design:

remez -- Optimal FIR filter design.
firwin --- Windowed FIR filter design.
iirdesign --- IIR filter design given bands and gains
iirfilter --- IIR filter design given order and critical
frequencies
freqs --- Analog filter frequency response
freqz --- Digital filter frequency response

Matlab-style IIR filter design:

butter (buttord) -- Butterworth
cheby1 (cheb1ord) -- Chebyshev Type I
cheby2 (cheb2ord) -- Chebyshev Type II
ellip (ellipord) -- Elliptic (Cauer)
bessel -- Bessel (no order selection available --
try butterod)

Linear Systems:

lti -- linear time invariant system object.
lsim -- continuous-time simulation of output to linear system.
impulse -- impulse response of linear, time-invariant (LTI)
system.
step -- step response of continous-time LTI system.

LTI Reresentations:

tf2zpk -- transfer function to zero-pole-gain.
zpk2tf -- zero-pole-gain to transfer function.
tf2ss -- transfer function to state-space.
ss2tf -- state-pace to transfer function.
zpk2ss -- zero-pole-gain to state-space.
ss2zpk -- state-space to pole-zero-gain.

Waveforms:

sawtooth -- Periodic sawtooth
square -- Square wave
gausspulse -- Gaussian modulated sinusoid
chirp -- Frequency swept cosine signal

Wavelets:

daub -- return low-pass filter for daubechies wavelets
qmf -- return quadrature mirror filter from low-pass
cascade -- compute scaling function and wavelet from
coefficients
Mar 15 '06 #9
LabWINC wrote:
I can't understand how gnuradio can help me...
I find scipy is the only way to implement a good FIR.


Well, then do it with scipy...
gnuradio has a module for FIR. I never used it. I just wanted to share
that information.

Hans Georg
Mar 15 '06 #10
Thank you too Georg

Mar 15 '06 #11
LabWINC wrote:
It's for research work. I'm implementing an algorithm from a matlab
one.
It could be very difficult to find the fir coefficients because i have
lot of fileters to implement.


Oh, you mean you need to find the coefficients, not just implement the
FIR filter itself. (Perhaps to some these describe the same thing, but
I would call the former "designing the filter".)

I see John Hunter's post shows scipy probably has what you need.

-Peter

Mar 15 '06 #12
I'm interested in finding coefficient and implementig the filter as
well.
John's post is what i need.

John Hunter wrote:
help scipy.filter (see FIR filter design below)


How can i get the help like yours?

If i type help scipy.filter it give me an error

help scipy.filter
File "<input>", line 1
help scipy.filter
^
SyntaxError: invalid syntax

I'm sorry but i'm new of python,

Vincent

Mar 15 '06 #13
LabWINC wrote:
If i type help scipy.filter it give me an error

help scipy.filter
File "<input>", line 1
help scipy.filter
^
SyntaxError: invalid syntax


You need parentheses:

help(scipy.filter)

--
Steve Juranich
Tucson, AZ
USA

Mar 15 '06 #14

"LabWINC" <vi*****************@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
If i type help scipy.filter it give me an error

help scipy.filter
File "<input>", line 1
help scipy.filter
^
SyntaxError: invalid syntax


The respondant left out parens. At interactive prompt:
help(scipy.filter)
or, in general
help(someobject)

Mar 15 '06 #15
>>>>> "Terry" == Terry Reedy <tj*****@udel.edu> writes:

Terry> "LabWINC" <vi*****************@gmail.com> wrote in message
Terry> news:11**********************@i40g2000cwc.googlegr oups.com...
If i type help scipy.filter it give me an error

help scipy.filter File "<input>", line 1 help scipy.filter ^
SyntaxError: invalid syntax


Terry> The respondant left out parens. At interactive prompt:
Terry> help(scipy.filter) or, in general help(someobject)

Sorry, ipython user here -- http://ipython.scipy.org

ipython supports autoparens....

JDH

Mar 15 '06 #16
www.rtcmix.org

Mar 15 '06 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: N.K. | last post by:
Hello, I'm trying to find a way to flexibly filter a column in a row of data read from a file. I will have data type of that column, the operation to be performed on it (like >, <, <= etc.) and the...
3
by: Alex Ayzin | last post by:
Hi, I have a problem that might be easy to solve(possibly, I've just overlooked an easy solution). Here we go: I have a dataset with 2 datatables in it. Now, I need to do the following: if...
3
by: Jason | last post by:
I am trying to filter records in a primary form based on records in related tables. The data in the related tables is being displayed in the primary form through subforms. To be more specific, I...
5
by: Richard | last post by:
Hi, I have a form that take some time to load due to many comboboxes and at least 8 subforms. When I filter or sort the main form I get an error message and then Access shuts down. They ask if...
10
by: milk-jam | last post by:
I'm trying to set my datagridview so that the first row will be left blank and to use it as a filtering filed for the datagridview. Until now I was using 2 datagridview the upper one with a header...
2
by: Konrad | last post by:
Hi Can you point examples in .NET of filtering (avoiding) displaying web pages with unwanted content on machine with ie? Thanks Konrad
7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
2
by: JUAN ERNESTO FLORES BELTRAN | last post by:
Hi you all, I am developping a python application which connects to a database (postresql) and displays the query results on a treeview. In adittion to displaying the info i do need to implement...
3
by: Shawn Ramirez | last post by:
As with most web applications speed is a huge deal to me in my applications. My customers don't really care if my app is a true 3 tier application or not, they just want it to be faster then it was...
3
by: Harry Haller | last post by:
Hello, I want to implement a generic list which will be used to display 7 columns in a GridView. One should be able to sort, filter and page each of the 7 columns. Ideally the filter should be...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.