Skip to main content
. 2018 May 8;18(5):1460. doi: 10.3390/s18051460
Algorithm 1 Orthogonal Matching Pursuit (OMP)
Input: A signal yN, a matrix AM×N.
Initialize: Set the support set Ω0=, the residual error r0=y and
put the counter k=1.
Identify: Find a column an from A that most correlates with
the residual error and record the correlation coefficient:
nkargmaxn=1,2,N|rk1,an|, Ωk=Ωk1{nk}
Estimate: compute the best approximating coefficients:
xk=argminxyAΩkx2
Iterate: Update the residual and counter:
rk=yAΩkxk, k=k+1
Until: Stopping criterion holds.
Output: The vector x^ with components x^(n)=xk(n)(nΩk) and
x^(n)=0 otherwise.