ALabrada / Neuronic.Filters

A collection of online digital filters for Digital Signal Processing (DSP).
GNU Lesser General Public License v3.0
7 stars 2 forks source link

Notch Filter #1

Open ravzanurceran opened 11 months ago

ravzanurceran commented 11 months ago

Hello, It is a very useful work, thank you. I'm trying to remove powerline noise from the ECG signal. Your Toolbax caught my attention. I want to use a notch filter to do this, but I couldn't find the library I need to use. Can you help me? Thanks again.

ALabrada commented 11 months ago

Hello, You can use BandStopButterworthCoefficients to design an IIR filter or BandStopFourierSeriesCoefficients to design a FIR filter. The type of filter depends on the use case. For online ECG filtering, probably, an IIR filter is better. Set f1 and f2 around your powerline frequency (50/60 Hz), ±5 Hz should be enough, depending on the order of the filter.

ravzanurceran commented 11 months ago

Thank you so much.