|
Alogithm 1 Modified diffusion wavelets. |
|
Input: the number of sensor nodes , communication radius , decomposition level , precision and MQR function. |
|
Output: sparse basis . |
| 1 generate a graph
|
| 2 compute weight adjacency matrix according to the vertex degree/Equation (11) |
| 3 calculate normalized Laplacian matrix relying on Equation (12)/Equation (13) |
| 4 generate diffusion operator
|
| 5 recursively raising to power 2 |
| 5.1 for
= 0 to − 1 |
| 5.2 ,
|
| 5.3
|
| 5.4
|
| 5.5 end for
|
| 6 concatenation of the scale functions and wavelet functions is regarded as the sparse basis . |
| MQR Function: |
|
|
|
Input:
B: sparse matrix,
|
|
Output:
, matrix, possibly sparse, such that
|
| (1) is orthogonal |
| (2) is upper triangular up to a permutation |
| (3) The columns of
-span the space spanned by the columns of B
|