针对传统 DV -Hop定位算法只考虑了最近一个锚节点估计的平均跳距,而导致定位误差较大这一问题, 提出了一种基于平均跳距误差修正的DV-Hop 定位算法。该算法从3个方面对其进行了改进:采用最小二乘法准则校正了信标节点间的平均每跳距离;定义一个误差距离矩阵,以此为中间变量,计算未知节点到信标节点的平均每跳距离;选择所计算误差矩阵中误差最小的那一个,计算出修正后的未知节点到信标节点的平均每跳距离。并对算法的性能进行了仿真研究。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001247s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.061261s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001219s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001262s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001295s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.005504s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.001466s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.005712s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.020970s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001659s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 246008 [ RunTime:0.014837s ]