Skip to main content
. 2024 Mar 9;24(6):1775. doi: 10.3390/s24061775
Algorithm 3: Forgetting Curve
input: t—Direct trust or Indirect trust values, c—Counter, n—nodeid
output: Setting the priority of recent test scores
function forgettingCurvet,c,n:
      if cn==threshold then
          troot(tn)
          tn=0
          cn=0
   end if
   if cn<threshold then
         troot(tn)
   end if
return