Research Article
1-Bit Compressive Data Gathering for Wireless Sensor Networks
Algorithm 2
BBIHT reconstruction algorithm.
(1) Initialization: (), , stop_var = 0.01, best_k | (2) for : 1 : max_K | (3) = BIHT(); //using BIHT as the 1-bit CS reconstruction algorithm with given sparse level k | (4) S(:, ) = ; | (5) end | (6) for 1 : 1 : max_K //find the best sparse level | (7) tmp = S(i, i: max_K); //get the non-zero | // elements of row | (8) if var(tmp) > stop_var //stop criticism | (9) best_k = ; | (10) Break; | (11) end | (12) end | (13) return S(:, best_k); //the best reconstructed signal |
|