Skip to main content
. 2020 May 9;20(9):2704. doi: 10.3390/s20092704
Algorithm 2 User Positioning Using Geomagnetic and Acceleration Data [14].
1: forito5do
2: for jtoW do
3:   Da(j)calculateDistance(Aw);
4:   S(j)generatePattern(Gw);
5:   Pg(j)findGeomagneticPosition(S(j));
6: end for
7: PcgeneratePositionCandidates(Pg,Da);
8: PigetPosition(Pc,Pg);
9: end for
10: PffinalizePosition(P,Da);