Skip to content
rossGardiner edited this page Mar 31, 2022 · 1 revision

Demos

Demo programs are in the "demo" directory which show how to use the filters for both floating point and fixed point.

  1. firdemo sends an impulse into the filter and you should see the impulse response at its output.
  2. fixeddemo filters an example ECG with 50Hz noise. The coefficients are 12 bit and you can generate them either with OCTAVE/MATLAB or Python. The scripts are also provided.
  3. lmsdemo filters out 50Hz noise from an ECG with the help of adaptive filtering by using the 50Hz powerline frequency as the input to the filter. This can be replaced by any reference artefact signal or signal which is correlated with the artefact.
  4. JAVA has an InstrumentedTest which filters both a delta pulse and a step function.
  5. filter_ecg.py performs the filtering of an ECG in python using the fir1 python module which in turn calls internally the C++ functions.

Clone this wiki locally