|
Algorithm 1 Optimization strategy for reducing the set of transmitted data. |
-
1:
Set , for all nodes , n is designated to smartphone
-
2:
Calculate accuracy a based-on training set, and Equation (2)
-
3:
for each
do
-
4:
for each activity j in do
-
5:
Calculate accuracy based on training set and and Equation (2)
-
6:
if then
-
7:
remove activity j from set and go to 2
-
8:
end if
-
9:
end for
-
10:
end for
|