Research Article

A Service-Based Method for Multiple Sensor Streams Aggregation in Fog Computing

Algorithm 1

Event capturing algorithm.
Input:
E = : a set of data series in the same window;
: the change threshold of PCC;
limit: the maximum value for the time lag vector;
output:
event;
obtain all pairs  in E;
for each  
if    and   have different numbers of records
the difference of their records’ numbers;
getLongerSeries;
getShorterSeries;
interpolation;
else
;
;
end if
aligned data series from  based DTW
calculate correlation coefficient cor of  ;
if >=
an event is captured;
break;
end if
end for