PAMI is a Python library containing 100+ algorithms to discover useful patterns in various databases across multiple computing platforms. (Active)
Previous | 🏠 Home | Next |
Item | Neighbors |
---|---|
Point(0 0) | Point(1 0) Point(0 1) |
Point(1 0) | Point(0 0) Point(0 1) Point(2 0) |
… | … |
item<seperator>NeighboringItem1<seperator>NeighboringItem2<seperator>...
item1 item3 item4 item10
item2 item3 item5 item11 ...
...
from PAMI.extras.neighbours import createNeighborhoodFileUsingEuclideanDistance as alg
inputLocationFile='geoReferencedInputFile.csv' #name of the input file
outputNeighborhoodFile='neighborhoodFile.csv' #name of the output file
maximumDistance=10 #specify your own value
seperator='\t' #default seperator.
alg.createNeighborhoodFileUsingEuclideanDistance(inputLocationFile,outputNeighborhoodFile,maximumDistance,seperator)