neXenio / BLE-Indoor-Positioning

Multilateration using bluetooth beacons
Apache License 2.0
430 stars 129 forks source link

What's the function means under TrilaterationFunction.java #161

Closed mrcrow closed 5 years ago

mrcrow commented 5 years ago
public Pair<RealVector, RealMatrix> value(RealVector point)

I notice that the function contains two parts, one part is sort of sum and another is make Jacobian matrix for input point.

I don't really understand what does the sum means, also this function could be separated into two functions and will works too and don't needs to make a pair at all

Steppschuh commented 5 years ago

The TrilaterationFunction class is part of the Trilateration library provided by @lemmingapex, I would encourage you to ask the question in that repo instead.

As of my understanding, the values and their derivatives directly relate to each other. The calculation could be separated into multiple methods to avoid the Pair instantiation, however I doubt that this would have any measurable performance impact. There's also no usage of this method where only the RealVector or RealMatrix would be required.