|
Algorithm 5 Variance algorithm for ciphertexts. |
-
1:
Input N: the number of the household
-
2:
Input : the count of records per day of each household
-
3:
Input : the ciphertexts array transferred from the service provider
-
4:
Input : the object that performs homomorphic computations
-
5:
for do
-
6:
-
7:
-
8:
-
9:
-
10:
-
11:
-
12:
-
13:
-
14:
-
15:
end for
-
16:
Output array back to the service provider
|