Commit c32534d69f237d0af51c230c4ae13c3eab85ae34
1 parent
6d36c26b
removed unused os library
Showing
2 changed files
with
1 additions
and
4 deletions
Show diff stats
README.md
@@ -17,6 +17,4 @@ This program aims to compute the approximate location of a mobile terminal for a | @@ -17,6 +17,4 @@ This program aims to compute the approximate location of a mobile terminal for a | ||
17 | ## Annex : N-Lateration 3D visualisation | 17 | ## Annex : N-Lateration 3D visualisation |
18 | visuals.py provides a cool function to graphically represent the N-Lateration distances in a 3D space by creating an animated gif (RMI style) | 18 | visuals.py provides a cool function to graphically represent the N-Lateration distances in a 3D space by creating an animated gif (RMI style) |
19 | ### Example : | 19 | ### Example : |
20 | -[ | ||
21 | - | ||
22 | - | 20 | +[Click here to view output gif example](https://dantz.fr/LO53/out.gif?) (too big to be displayed) |
23 | \ No newline at end of file | 21 | \ No newline at end of file |
visuals.py
@@ -2,7 +2,6 @@ from structure import RSSVector, Location, Cell, newCell, KNeighbors, resolve_ba | @@ -2,7 +2,6 @@ from structure import RSSVector, Location, Cell, newCell, KNeighbors, resolve_ba | ||
2 | from random import random | 2 | from random import random |
3 | from math import floor, sqrt, ceil | 3 | from math import floor, sqrt, ceil |
4 | from PIL import Image, ImageDraw | 4 | from PIL import Image, ImageDraw |
5 | -from os import startfile | ||
6 | 5 | ||
7 | dataset = [(Location(.5,.5,.5), 3.0), (Location(4.0,.0,.0), 2.0), (Location(4.0,5.0,5.0), 4.2), (Location(3.0,3.0,3.0), 2.5)] | 6 | dataset = [(Location(.5,.5,.5), 3.0), (Location(4.0,.0,.0), 2.0), (Location(4.0,5.0,5.0), 4.2), (Location(3.0,3.0,3.0), 2.5)] |
8 | NLat_result = NLateration(dataset) | 7 | NLat_result = NLateration(dataset) |