Skip to main content
. 2019 Jul 14;19(14):3108. doi: 10.3390/s19143108
Algorithm 1: Pseudo code of the EMD algorithm
Input: Given a signal x(t)
  1. Set r(t) = x(t) and k = 0.
  while r(t) is not monotonous do
    2. Set m(t) = r(t).
    while m(t) is nontrivial do
      3. Interpolate the local minima and maxima, ending up with lower and upper envelopes, emin(t) and emax(t).
      4. Compute the average m(t)=0.5(emin+emax).
      5. Extract the different signal d(t)=r(t)m(t), and denote d(t) as r(t)
    end while
    6. Set k = k + 1.
    7. Set IMFk(t)=d(t).
    8. Set r(t) = x(t) − i=1kIMFi (t) 
  end while
Output.x(i)= i=1kIMFi (t) +r(t)