|
Algorithm 2 Data Reduction Algorithm Based on Adaptive Reduction Threshold |
-
1:
while True do
-
2:
if k = 1 then
-
3:
Insert into cachedval
-
4:
Send to remote processor
-
5:
else
-
6:
Insert into cachedval
-
7:
Calculate
-
8:
Call Algorithm 1 to calculate adaptive reduction threshold
-
9:
if changes then
-
10:
send to edge server
-
11:
Call the Kalman filter to calculate estimated value
-
12:
= −
-
13:
if || > then
-
14:
send to remote processor
|