Skip to main content
. Author manuscript; available in PMC: 2013 Dec 2.
Published in final edited form as: J Biomed Sci Eng. 2013 Jul 18;6(7B):10.4236/jbise.2013.67A2001. doi: 10.4236/jbise.2013.67A2001

Algorithm II-C.

Wavelet Filtering

Initialization
  • Calculate the scales of Eq. (2) for N = 128 wavelets.

For i = 1 step 1 until 128
  • Decompose the ECG and EMG with the wavelets of Eq. (1).

  • Correlate the same-scale components of these decompositions.

End
 Rank the components in the descending order of the correlation.
Repeat
  • Remove the highest-rank component.

  • Reconstruct the signal using the remaining components.

  • Calculate the signal spikiness E using Eq. (3).

End when E has reached its minimum.