| Algorithm 1: The proposed PL-assisted clustering algorithm. |
|
Input: offline RSS fingerprints ; position labels of offline RSS fingerprints ; number of prototype vectors Q; initialized prototype vector set ; position labels of prototype vectors ; learning rate ; 1: repeat 2: randomly select an offline RSS fingerprint from the database; 3: calculate the Euclidean distance between the selected and all prototype vectors: 4: find the prototype vector closest to the selected : 5: if 6: ; 7: else 8: ; 9: end 10: the prototype vector is updated as ; 11: return to line 2; 12: until achieve the maximum number of iterations or the update range of the prototype vectors is very little; Output: the final prototype vector ; |