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
145 stars 35 forks source link

Cutoff frequency set directly #5

Open LitterWindwind opened 6 months ago

LitterWindwind commented 6 months ago

Hello, s/f as normalized frequency. When I set the sampling frequency to 250HZ according to the example, and set f to 3hz, I cannot get the ideal result using a simple sine wave test. I would like to ask how to conveniently set the cutoff frequency?

thanks

adis300 commented 3 months ago

Are you using a high pass or low pass filter? What does the sine wave look like. You can post code sample here.