信标三角剖分

时间:2019-03-22 09:15:48

标签: android beacon trilateration

我正在使用信标三边测量,并且正在使用库:https://github.com/lemmingapex/trilateration

我有信标的位置:

double[][] positions = new double[][] { { 5.0, -6.0 }, { 13.0, -15.0 }, { 21.0, -3.0 }, { 12.4, -21.2 } };

当我使用估计信标时,我可以使用computeAccuracy(beacon)方法获得到信标的距离。 我想将4个最近的信标添加到distances数组,但是我对如何实现这一点感到有些困惑。我尝试过这样的事情:

for (final EstimoteLocation beacon : locations) {
    double[] distances = new double[] { RegionUtils.computeAccuracy(beacon) };
}

但是这只会增加一个信标到阵列的距离。有人可以帮忙吗?

0 个答案:

没有答案