[問題]stackoverflow上 ble beacon 距離公式疑問
http://stackoverflow.com/a/20434019
不知道有沒有大大知道公式的一些數字怎麼算出來的,原因是什麼!
protected static double calculateAccuracy(int txPower, double rssi) {
// 這裡就是無法準確取得rssi值,就回傳-1.0回去
if (rssi == 0) {
return -1.0; // if we cannot determine accuracy, return -1.
}
// 以下我就不知道為什麼了,所以想請教各位
double ratio = rssi*1.0/txPower;
if (ratio < 1.0) {
return Math.pow(ratio,10);
}
else {
// 想很詳細的知道這些數字怎麼算得的以及它的含意
double accuracy = (0.89976)*Math.pow(ratio,7.7095) + 0.111;
return accuracy;
}
}
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.228.143.226
※ 文章網址: https://www.ptt.cc/bbs/AndroidDev/M.1453269155.A.FF1.html
推
01/20 14:51, , 1F
01/20 14:51, 1F
推
01/20 17:42, , 2F
01/20 17:42, 2F
→
01/20 17:42, , 3F
01/20 17:42, 3F
→
01/20 17:43, , 4F
01/20 17:43, 4F
→
01/20 17:43, , 5F
01/20 17:43, 5F
→
01/20 18:30, , 6F
01/20 18:30, 6F
→
01/20 18:31, , 7F
01/20 18:31, 7F
※ 編輯: freedom74569 (36.228.143.226), 01/20/2016 18:32:02
→
01/20 18:33, , 8F
01/20 18:33, 8F