“…, M is the number of buffer data in a sensor node; initially start is 0 and size is M. (3) output: the compression representation of non-base attribute Y, in the receiving end which can be used to reconstruct the raw sampling data satisfied the predefined regression error bound (4) begin (5) double a, b, old a, old b; (6) int counterror; (7) loop: (8) int startpos= start; (9) int count= 8; (10) while (startpos+ count <= start+ size) do{ (11) IncRegress (startpos, count, eps, &a, &b, &counterror); (12) if (counterror> 0) then{ (13) if (count==8) then{ (14) Directly transmit the eight raw data Y[startpos ⋅ ⋅ ⋅ startpos+7] to the receiving sensor node; (15) startpos += 8; } (16) else{ (17) Transmit the 4-tuples (old a, old b, startpos, count/2) for regression representation of count/2 data; (18) //the approximation of Y[startpos.. startpos+count/2-1] can be reconstructed by the 4-tuples in the receiving end (19) startpos += count/2;…”