Skip to main content
. 2019 Dec 3;19(23):5330. doi: 10.3390/s19235330
SWOMP algorithm:
Input parameters: observation y, measurement matrix Φ, number of iterations S, threshold value α.
Output parameters: sparse signal θ.
Initialization: signal margin r = y, sparse signal θ=0, index set Λ0=, number of iterations k = 1, support set A0=.
   (1) Calculate the correlation coefficient u={ui|ui=|r,φi|,i=1,2,,N}.
   (2) Select a value greater than Th=αargmaxi=1,2,,N|r,φi| in u and constitute the serial number corresponding to the selected value to form set J0.
   (3) Update the index set and the support set; let Λk=Λk1J0 and Ak=Ak1φJ0. If Λk=Λk1, stop iteration, and turn to Step (6).
   (4) Calculate the least-squares solution of y=Akθk, θk=(AkTAK)1AkTy, and update the residual rk=yAkθk=y(AkTAk)1AkTy.
   (5) Let k = k + 1. If kS, return to Step (2); otherwise, stop iteration.
   (6) Output sparse signal.