Skip to main content
. 2020 Jun 22;20(12):3534. doi: 10.3390/s20123534
Algorithm 3 Accelerometer sample selection
Require: Data DN={yωN,yaN}, number of allowed measurements Nmax, window size n, threshold Eth.
  • 1:

    ifN>Nmaxthen

  • 2:

        Compute sa(k),k according to (46) using window size n.

  • 3:

        Remove measurements where sa(k)>Eth from a.

  • 4:

        N|ya|.

  • 5:

        while N>Nmax do

  • 6:

            Compute the SVD A=UΣW, with A given by (27).

  • 7:

            Compute the coherence c according to (52).

  • 8:

            Remove the measurement with largest sa(k) where ck>0.5 from a.

  • 9:

            N|ya|.      ▹ A changes in subsequent iterations.

  • 10:

        end while

  • 11:

    end if

  • 12:

    returnyaNmax.