Research Article

Online Missing Data Imputation Using Virtual Temporal Neighbor in Wireless Sensor Networks

Algorithm 1

Calculation of VTN.
 Input: input data matrix (), VTN matrix (, u_index, v_index, c_index, vtn_index, waiting indices vector (), imputing_flag.
 Output: VTN matrix (), imputing_flag. 1.
 if then
(2) Add into
(3)  else if and then
(4)  
(5)  
(6)  if then
(7)    Reverse
(8)    for each element in do
(9)       
(10)      
(11)      
(12)      if then
(13)     
(14)         while do
(15)       
(16)     end while
(17)   end if
(18)
(19)
(20)    end for
(21)  end if
(22) end if
(23)return VTN matrix (), imputing_flag.