|
| |
| Algorithm 2: Accumulated reputation model. | |
|
| |
| Input: Number of participants N = {1, 2, …, n}, sensing data S = {s1, s2, …, sn} of n participants | |
| Output: Reputation score R = {r1, r2, …, rn}, sensing result V | |
| 1 | for i = 1 to n do |
| 2 | Computing M = {m1, m2, …, mn} using Equations (1) and (2) |
| 3 | end |
| 4 | for i = 1 to n do |
| 5 | Computing C = {c1, c2, …, cn} using Equations (3) and (4) |
| 6 | Computing R = {r1, r2, …, rn} using Equation (5) |
| 7 | end |
| 8 | Computing V using Equation (6) |
|
| |