Skip to main content
. 2018 Feb 28;18(3):724. doi: 10.3390/s18030724
Algorithm 4. Sensor signal reconstruction.
1 Input: received data X, measurement matrix Φ, the number of atom is natom
2 Output: reconstruct data x∧
3 generate sparse basis Ψ using Algorithm 1
4 collect data Y in the network using Algorithm 3
5 A←Ψ∗Φ
6 initialization residual error r0=y, Λ0=∅, A0=∅, it=1
7 compute 〈ri−1,aj′〉, select the largest la values from 〈ri−1,aj′〉; these values correspond to A’s column indexes j, constructing set J0
8 set Λit=Λit−1∪J0, Ait=Ait−1∪aj (for all j∈J0)
9 x∧it=(AitTAit)−1AitTy
10 update rit=y−Aitx∧it
11 it=it+1, if it≤K go back to step 7, or proceed to step 12
12 reconstruct x∧, which is the generation value of the last iteration x∧it.