Skip to main content
. 2022 Oct 24;22(21):8128. doi: 10.3390/s22218128
Algorithm 1 Robust TQWT
  • 1:

    Select the Q and r initially to 1.

  • 2:

    Calculate Lmax from the values of Q and r.

  • 3:

    Decompose EEGs with Q, r and Lmax.

  • 4:

    Get the approximated original signal by inverse robust TQWT using Q, r and M (No. of time samples).

  • 5:

    Compute the MSE of decomposition error we(t).

  • 6:

    while(min(we(t)))do

  • 7:

     if (we(t)== min) then

  • 8:

      Optimum tuning parameters (Qopti and ropti).

  • 9:

    else

  • 10:

      Iterate for next values of Q and r.

  • 11:

    end if

  • 12:

    end while

  • 13:

    Obtain the maximum decomposition levels Lmaxi from Qopti and ropti.

  • 14:

    Evaluate the optimum decomposition levels from Lmax.

  • 15:

    Obtain the SBs of EEG signals using the optimum tuning parameters.

where Qopti, Lmaxi and ropti are optimum tuning parameters for signal i.