Skip to main content
. 2019 Jun 3;19(11):2538. doi: 10.3390/s19112538
Algorithm 1 Floor Identification Using Magnetic Data
  • 1:

    Input: magnetic data M, User phone orientation O

  • 2:

    fori1to5do

  • 3:

    SmtransformMagData(Oi,Mi);

  • 4:

    for jNb do

  • 5:

      EdcalEucDistance(Sm,DBbj);

  • 6:

    end for

  • 7:

    Fcargmin(Ed);

  • 8:

    end for

  • 9:

    FbremoveOutliers(Fc);