|
|
Algorithm 1 Data Fusion Algorithm |
|
| 1. |
INPUT: (T: Node temperature, H: Humidity ratio, N: Signal to noise ratio) |
| 2. |
OUTPUT: Fused Data |
| 3. |
BEGIN |
| 4. |
WHILE (Event NOT Detected) |
| 5. |
FOR all the cluster members in one kind |
| 6. |
CFn ← FLC (T, H, N) |
| 7. |
IF CFn ≥ δ
|
| 8. |
Data and CFn will be sent CH |
| 9. |
ELSE
|
| 10. |
Collected data will not be considered |
| 11. |
END IF
|
| 12. |
END FOR |
| 13. |
FDn ← Received data by CHs from one kind of node will be fused |
| 14. |
Consequent ← FLC (FD1, FD2, …, FDn) |
| 15. |
IF the consequent was not changed |
| 16. |
Disregards the received data |
| 17. |
ELSE IF |
| 18. |
Send the Consequent to BS |
| 19. |
IF the event detected by BS |
| 20. |
Report the event |
| 21. |
END IF
|
| 22. |
END IF |
| 23. |
END WHILE |
| END Algorithm |
|