lemmingapex / trilateration

Solves a formulation of n-D space trilateration problem using a nonlinear least squares optimizer
MIT License
398 stars 106 forks source link

refactor TrilaterationFunction to extract getWeight #9

Closed tenjaa closed 7 years ago

tenjaa commented 7 years ago

Hey,

I want to try some different weights and overriding each time the whole function was not the best solution. Furthermore the array targets doesn't need to be set explicitly.

lemmingapex commented 7 years ago

If you want control over weights use the other solve method: https://github.com/lemmingapex/trilateration/blob/master/src/main/java/com/lemmingapex/trilateration/NonLinearLeastSquaresSolver.java#L29

Xustyx commented 7 years ago

Hello @lemmingapex !

Can you explain more about how to use weigth instead of distances?

I think that it migth be good because the interesting of trilateration is do it with signal weigth, and people are looking for this way.