Skip to main content
. 2019 Aug 13;19(16):3531. doi: 10.3390/s19163531
Algorithm 2 OMP
 Input: A=ΦΨ,y,k
 Initialize:
 r0=y//residualA0=∅//columnst=0
 Output: k-sparse coefficient vector x
 whilet<k do
  λt=argmaxj|ajTrt−1|  // find the column of A that is most strongly correlated with the residual
  At=[At−1aλt]  // merge the new column
  xt=At†y  // find the best coefficients xt from (31)
  rt=y−Atxt  // update the residual
  t=t+1
 end while