FIR filter design function

Hi!

If I design filters, what gnuradio module do I prefer:

  • optfir
  • gr.firdes
    ?

It seems to me that you use gr.firdes in newer code, but optfir allows
me to specify more filter parameters.

Thanks for your help
Dominik

Dominik A. wrote:

Hi!

If I design filters, what gnuradio module do I prefer:

  • optfir
  • gr.firdes
    ?

It seems to me that you use gr.firdes in newer code, but optfir allows
me to specify more filter parameters.

firdes creates windowed filters, and is always guaranteed to give you a
working filter. optfir uses the Parks-McClellan algorithm, and can
produce better filters. However, if you ask too much of it, it will
fail, since the algorithm is not guaranteed to converge.

Matt

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs