Return to Snippet

Revision: 41040
at February 11, 2011 04:05 by adkatrit


Initial Code
def euclidean(x,y):
	sumSq=0.0
	
	#add up the squared differences
	for i in range(len(x)):
		sumSq+=(x[i]-y[i])**2
		
	#take the square root of the result
	return (sumSq**0.5)

Initial URL


Initial Description


Initial Title
Euclidean Distance

Initial Tags


Initial Language
Python