Skip to main content
. 2021 May 14;21(10):3428. doi: 10.3390/s21103428
Algorithm 1 Step Detection Algorithm.

    Input: Filtered acceleration norm y˜a, threshold value Bth, window length Ns.

    Output: Double stance indices PH at high peak of acceleration norm.

  • 1:

    Compute the number of samples N of y˜a

  • 2:

    for discrete time k from k=Ns+1 to NNs do

  • 3:

    if y˜a,k>Bth and y˜a,kmax(y˜a,kNs:y˜a,k1) and y˜a,kmax(y˜a,k+1:y˜a,k+Ns) then

  • 4:

      PH=[PH,k];

  • 5:

    end if

  • 6:

    end for