Skip to main content
. 2024 Apr 4;24(7):2291. doi: 10.3390/s24072291
Algorithm 1: Orthogonal matching pursuit (OMP)
Input: A,y,K
Output: θ
1 Initialization r0=θ, Λ0=∅;
2 Normalize all columns of A to unit L2 norm;
3 for k = 1,2, …, K do
4            Step 1:      λk=j∉Λk−1arg⁡max⁡aj,rκ−1;
5            Step 2:      Λk=ΛK−1∪λk;
6            Step 3:      xkⅈ∈Λk=xarg⁡min⁡AΛkx−y2;
7            Step 4:      θk~=Axk;
8            Step 5:      γk=θ−θk~;
9 end