corrected name

This commit is contained in:
Martin Diehl 2016-07-15 15:48:53 +02:00
parent c792b73b4e
commit e8153ad196
1 changed files with 2 additions and 2 deletions

View File

@ -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