In the article, elementary ECG filtering in the (numbered) section applies filter removal to remove noise from the power line; The result is displayed in Figure 2 . This Java ImageJ plugin , Notch_Filters , "implements the most common Notch filters in the frequency domain." Although this example is not a direct port to Android, it may allow you to choose a specific implementation for re-implementation.
Please note that this article extends the limitations of the approach.
Addendum: The filter notch uses an FFT, so you will need both.
source share