finding euclidean distance,better code?
harryos
oswald.harry at gmail.com
Fri Mar 28 17:15:04 EDT 2008
> the norm from which it is derived is called norm-1, or L1; the usual > euclidean distance is derived from norm-2.
> If you only want to see if two things are "close enough", this provides a faster measure than the euclidean distance.
thanks Gabriel for the detailed explanation..
if i were to calculate the euclidean distance in the above example how
should i go about it..?
should i replace
distance = abs(input_wk - weights[image, :])
with something else?
thanks again
oharry
More information about the Python-list
mailing list