Skip to main content
. 2020 Jun 19;20(12):3467. doi: 10.3390/s20123467
Algorithm 1 Data Aggregation with Pattern Matching.
 INITIALIZATIONS
α= thresholdvalue
 code =α
 p_code = Generate_pattern_code(data,code)
 END INITIALIZATIONS
 int Generate_pattern_code(data,code)
 {
 data_matched = Compare_data_with_stored_pattern(data,code)
if (data_matched) then
   return (code)
else
   return (α)
end if
 } END Generate_pattern_code
if (p_code ==α) then
   send_data(data)
else
   send_data(p_code)
end if