Skip to main content
. 2020 Jun 22;20(12):3534. doi: 10.3390/s20123534
Algorithm 2 Gyroscope sample selection
Require: Gyroscope data yωN, number of allowed measurements, Nmax, window size n.
  • 1:

    ifN>Nmaxthen

  • 2:

        Compute sω(k),k according to (43).

  • 3:

        Obtain the sorted order k such that sω(k)sω(k+1),k(1,N1).

  • 4:

        Remove the NNmax samples yω(tk),k(Nmax/2+1,NNmax/2) from yω.

  • 5:

    end if

  • 6:

    returnyωNmax