|
Input:Y, , , , , , , , ,
Output:
-
1:
/* Consider is the standard deviation of each participant*/
-
2:
if standard deviation is considered as private information then
-
3:
and are calculated by Equations (12) and (13), and set .
-
4:
else
-
5:
is calculated by Equation (10), and set .
-
6:
end if
-
7:
/*w represents the width of each bin*/
-
8:
an arbitrary real number
-
9:
-
10:
fordo
-
11:
/* for . . .*/
-
12:
end for
-
13:
-
14:
fordo
-
15:
/*Note that */
-
16:
for
do
-
17:
-
18:
end for
-
19:
-
20:
end for
-
21:
Set for each i based on Y.
-
22:
for Repeat sufficient times do
-
23:
for
do
-
24:
-
25:
for
do
-
26:
/*Calcuation of the denominator of Equation (5)*/
-
27:
end for
-
28:
end for
-
29:
for
do
-
30:
for
do
-
31:
-
32:
end for
-
33:
-
34:
end for
-
35:
for
do
-
36:
if
then
-
37:
-
38:
end if
-
39:
end for
-
40:
end for
|