12. Calculating the Euclidean distances between and each fingerprint in the database. Sorting these distances and choose nearest fingerprints’ coordinates;
13. Based on and fingerprints, using AHP to build hierarchical model and judgment matrices;
14. Examining the consistency of each judgment matrix and determining the weight vector of each judgment matrix based on Equation (7) and (8);
15. Getting the weights of fingerprints’ coordinates that are needed to realize localization based on Equation (9);
16. Based on the coordinates and their corresponding weights, using Equation (6) to estimate the optimal position ;