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|ajTrt1|  // find the column of A that is most strongly correlated with the residual
  At=[At1aλt]  // merge the new column
  xt=Aty  // find the best coefficients xt from (31)
  rt=yAtxt  // update the residual
  t=t+1
end while