View full-text article in PMC Sensors (Basel). 2017 Aug 5;17(8):1789. doi: 10.3390/s17081789 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1: Floor Dynamic Radio Map (FDRM) Generation Input: Area W&L, Floors List, AccessPoints Lis Output: Floor Dynamic Radio Map (FDRM) 1: Create Reference Point List (RP) 2: For i ← 1 to 4 do 3: For j ← 1 to 2 do 4: rp.x ← (i*2−1)*L/8 5: rp.y ← (j*2−1)*W/4 6: RP.add(rp) 7: End For 8: End For 9: Create Floor Dynamic Radio Map List (FDRM) 10: For each FN in Floors List do 11: For each RP in Reference Point List do 12: For each AP in AccessPoints List do 13: d ← EuclideanDistance(RP, AP) 14: fb ← Absolute(FN − AP.floor) 15: rss ← −34−22*log10(d)−fb*26 − random(−1,1) 16: FDRM.add(rss+FN) 17: End For 18: End For 19: End For 20: Return FDRM