|
Algorithm 1 Anonymization Algorithm. |
|
Input:, , , , , , .
Output: Report value v and standard deviation of sensing error
-
1:
Obtain sensed value v and standard deviation of sensing error
-
2:
if the standard deviation is considered as private information then
-
3:
-
4:
end if
-
5:
/* If v is smaller than (or larger than ), v is set to (or ).*/
-
6:
/* The global sensitivity is .*/
-
7:
/* If v is smaller than (or larger than ), v is set to (or ).*/
-
8:
if the standard deviation is considered as private information then
-
9:
/* If is smaller than (or larger than ),
is set to (or ).*/
-
10:
/* The global sensitivity is .*/
-
11:
end if
-
12:
Report v and .
|