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:

    if N>Nmax then

  • 2:

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

  • 3:

        Obtain the sorted order k′ such that sω(k′)≤sω(k′+1),∀k′∈(1,N−1).

  • 4:

        Remove the N−Nmax samples yω(tk),∀k′∈(Nmax/2+1,N−Nmax/2) from yω.

  • 5:

    end if

  • 6:

    return yωNmax