easy-trilateration-0.1.4
توضیحات
Easy Least-Squares trilateration using scipy
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | easy-trilateration-0.1.4 |
| نام | easy-trilateration |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Agustin Alexander |
| ایمیل نویسنده | agustin.c.alexander@gmail.com |
| آدرس صفحه اصلی | https://github.com/agusalex/Least-Squares-Trilateration |
| آدرس اینترنتی | https://pypi.org/project/easy-trilateration/ |
| مجوز | MIT |
# easy-trilateration
Trilateration example using least squares method in scipy (Graphing tools included).

Trilateration enables the unknown point to be found. However a since there are a number of samples a non linear least squares method needs to be used to find the solution that has the least error.
It is distinct from triangulation which has a series of angles to an unknown point. Trilateration uses a series of distances to an unkown point.
## How to install
pip install easy_trilateration
## How to use
### Simple Trilateration
from easy_trilateration.model import *
from easy_trilateration.least_squares import easy_least_squares
from easy_trilateration.graph import *
if __name__ == '__main__':
arr = [Circle(Point(100, 100), 50),
Circle(Point(100, 50), 50),
Circle(Point(50, 50), 50),
Circle(Point(50, 100), 50)]
result, meta = easy_least_squares(arr)
create_circle(result, target=True)
draw(arr)
### Location History
arr = Trilateration([Circle(100, 100, 70.5),
Circle(100, 50, 50),
Circle(50, 50, 0),
Circle(50, 100, 50)])
arr2 = Trilateration([Circle(100, 100, 50),
Circle(100, 50, 70.5),
Circle(50, 50, 50),
Circle(50, 100, 0)])
arr3 = Trilateration([Circle(100, 100, 0),
Circle(100, 50, 50),
Circle(50, 50, 70.5),
Circle(50, 100, 50)])
arr4 = Trilateration([Circle(100, 100, 50),
Circle(100, 50, 0),
Circle(50, 50, 50),
Circle(50, 100, 70.5)])
hist: [Trilateration] = [arr, arr2, arr3, arr4, arr]
solve_history(hist)
a = animate(hist)

## Method
This code uses the [scipy.optimize.least_squares](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.least_squares.html) method.
نیازمندی
| مقدار | نام |
|---|---|
| - | matplotlib |
| - | scipy |
نحوه نصب
نصب پکیج whl easy-trilateration-0.1.4:
pip install easy-trilateration-0.1.4.whl
نصب پکیج tar.gz easy-trilateration-0.1.4:
pip install easy-trilateration-0.1.4.tar.gz