Research Article

A Fuzzy-Decision Based Approach for Composite Event Detection in Wireless Sensor Networks

Algorithm 2

Two-dimensional -GAS algorithm.
Input:
output:
For ( to p)
- ;
End for
;
- ;
Function -GAS ( )
   Initialize:
      Sort the data of from small to large
      Choose as the initial classification
       
   Repeat:
      ;
    ;
    ;
   Until
       ;
       ;
   Return ;
End function -GAS