Skip to main content
. 2022 Mar 21;22(6):2422. doi: 10.3390/s22062422
Algorithm 2: Trust Evaluation
Input: Current timestep, trust value of victim, index of duel in set of duels (i)
Output: Updated trust values of players for given timestep
1. procedure EVALTRUST(time, vicTrust, i)
2.  normTime ← normalizeTime(time)
3.  newTrustAdj ← 0.5*normTime+0.5*0.5vicTrust
4. for j in team of killer (Equation (2)) do
5.   updatedTrust ← trustSet[i1][j] + newTrustAdj
6.   trustSet[i][j] ← sigmoid(updatedTrust)
7. for k in set of players (Equation (1)) do
8.   if k not in team of killer (Equation (2)) then
9.    trustSet[i][k] ← trustSet[i1][k]