root / neighbors / doc / neighbours.txt
| Revision 131:9f4885429b5b, 311 bytes (checked in by Tarek Ziad?? <tarek@…>, 17 months ago) |
|---|
| Line | |
|---|---|
| 1 | ========== |
| 2 | neighbours |
| 3 | ========== |
| 4 | |
| 5 | Based on the neartag module, we can compute in a database the neighborhood. |
| 6 | |
| 7 | >>> from neighbours import compute |
| 8 | >>> compute() |
| 9 | |
| 10 | We can then get distances immediatly:: |
| 11 | |
| 12 | >>> from neighbours import get |
| 13 | >>> get('tarek') |
| 14 | [(0.56..., 'robert'), (0.56..., 'test')] |
Note: See TracBrowser
for help on using the browser.
