Hello!
I am a dual degree medical doctor/electrical engineer that specializes in signal and data processing, usually in MATLAB. This is the stuff I do, so this will be accurate and fast. This is part of the processing we do on ECG, EEG and all other measured electrophysiological sygnals.
Contact me if you have any questions.
Best regards!!