corrected name
This commit is contained in:
parent
c792b73b4e
commit
e8153ad196
|
@ -31,9 +31,9 @@ def meshgrid2(*arrs):
|
||||||
return tuple(ans)
|
return tuple(ans)
|
||||||
|
|
||||||
def findClosestSeed(fargs):
|
def findClosestSeed(fargs):
|
||||||
point, seeds, weightssquared = fargs
|
point, seeds, myWeights = fargs
|
||||||
tmp = np.repeat(point.reshape(3,1), len(seeds), axis=1).T
|
tmp = np.repeat(point.reshape(3,1), len(seeds), axis=1).T
|
||||||
dist = np.sum((tmp - seeds)*(tmp - seeds),axis=1) - weightssquared
|
dist = np.sum((tmp - seeds)**2,axis=1) -myWeights
|
||||||
return np.argmin(dist) # seed point closest to point
|
return np.argmin(dist) # seed point closest to point
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue