Skip to main content
. 2020 May 25;20(10):2999. doi: 10.3390/s20102999
Algorithm 1. CS-OMP algorithm for breathing signal.
Input: perception matrix ACS=ΦΓ, Observation vector y, Signal spectrum peak frequency fmax, and the noise boundary ε.
Output: 1-sparse reconstructed signal for x, x^.
  • 1:

    Initialization residual r0=y, K=1, index matrix Λ0=Φ0=.

  • 2:

    Find the index λK corresponding to the residual rK, and the maximum value of the column inner product of the measurement matrix such that λK=argmaxj=1,,NrK1,ϕj;

  • 3:

    Update index matrix ΛK=[ΛK1,λK] and ΦK=[ΦK1,ϕλK1];

  • 4:

    Calculate the least squares solution, α^K=argminαKyACSKα2;

  • 5:

    Update rK=yACSα^K;

  • 6:

    If rK2>ε, return to Step 1. Otherwise, reconstruct the signal x by using x^=Γα^K;

  • 7:

    If the reconstructed signal spectrum is f=fmax, stop, output x^. Otherwise, return to Step 2.