Skip to main content
. 2018 Feb 28;18(3):724. doi: 10.3390/s18030724
Alogithm 1 Modified diffusion wavelets.
Input: the number of sensor nodes N, communication radius r, decomposition level η, precision ε and MQR function.
Output: sparse basis Ψ.
1 generate a graph G(V,E)
2 compute weight adjacency matrix Ω=[wij] according to the vertex degree/Equation (11)
3 calculate normalized Laplacian matrix Λ relying on Equation (12)/Equation (13)
4 generate diffusion operator O=I−Λ
5 recursively raising Ο to power 2
 5.1 for η= 0 to η − 1
 5.2 [xj+1]xj, [O]x0x1←MQR([O2η]xjxj,ε)
 5.3 Oj+1:=[O2η+1]xj+1xj+1←[xj+1]xj[O2η+1]xjxj[xj+1]xj∗
 5.4 [Ψη]xj←MQR(I〈xj〉−[xj+1]xj[xj+1]xj∗,ε)
 5.5 end for
6 concatenation of the scale functions and wavelet functions is regarded as the sparse basis Ψ.
MQR Function:
Q,R←MQR(B,ε)
Input: B: N×N sparse matrix, ε
Output: Q, R matrix, possibly sparse, such that B=εQR
(1) Q is orthogonal
(2) R is upper triangular up to a permutation
(3) The columns of Q ε-span the space spanned by the columns of B