Skip to main content
. 2022 Oct 28;22(21):8285. doi: 10.3390/s22218285
Algorithm 2: Calculating Trust Value (TV(Vn))
  • Input: Vehicle map: Vn,Rs,ω,

  • Output:  TV(Vn)

  • TV(Vn):

  • for  TVm(Vn)  do

  •     if TV(Vn) exists in database then

  •         update label to ω(Vn)

  •     end if

  •     if TVVn==TVVN then

  •         calculate TV(Vn) by Equation (5)

  •     end if

  •     if ω(Vn) exists in the database then

  •         calculate TV(Vn) by Equation (4)

  •     end if

  • end for

  • update TV(Vn)