adis300 / filter-c

Elegant Butterworth and Chebyshev filter implemented in C, with float/double precision support. Works well on many platforms. You can also use this package in C++ and bridge to many other languages for good performance.
MIT License
144 stars 34 forks source link

First order filters question #1

Closed acwiek closed 2 years ago

acwiek commented 2 years ago

Hi, is there a simple way, create a first-order filter using your code?

adis300 commented 2 years ago

Sorry, the implementation is based on https://exstrom.com/journal/sigproc/dsigproc.html

only 4,8,12,16 is supported for band pass, and 2,4,6,... for low pass and high pass.

If you really need a filter that has an odd order. You can try a similar implementation from here. https://exstrom.com/journal/sigproc/alpbw.c