| Algorithm 1: Fuzzy C-Means |
| input: The geographical coordinates of the devices, the desired number of clusters M and the error stop criterion . |
| output: The final fuzzy c-partitioned matrix , the geographical coordinates of the gateways, the final Euclidean distance matrix, and the objective function . |
|