An AP-Centred smart probabilistic fingerprint system for indoor positioning