Beispiel #1
0
Datei: main.py Projekt: helme/acp
#!/usr/bin/python
from globalProtoMethod import globalProtoMethod

x = [1, 1, 1, 3, 1, 4, 3, 5, 4, 4]

print globalProtoMethod(x, 500, 0, 10000)
Beispiel #2
0
Datei: main.py Projekt: helme/acp
#!/usr/bin/python
from globalProtoMethod import globalProtoMethod

#x = [1, 1, 1, 3, 1, 4, 3, 5, 4, 4]
x = [1, 1, 1, 3]
r = [1, 1]

y = globalProtoMethod(x, r, 500) #, 0, 10000)
print y
print ((y[0][0]-y[0][2])**2 + (y[0][1] - y[0][3])**2)