Skip to main content
. 2020 May 9;20(9):2704. doi: 10.3390/s20092704
Algorithm 1 Make Magnetic Pattern Database.
Input: Location coordinate L and magnetic data Md for three smartphones
Output: Binary Grid (BG)- magnetic pattern database
1: fori1toLdo
2: capplyTwoSidedWindow(i,Md,k) // k represents the no. of subsequent and previous data points taken.
3: MdfremoveOutlier(c,ϵ,Md)
4: MdnnormalizeData(Mdf)
5: end for
6: BGmakeBinaryGrid(Mdn