euclidean norm


See On Github

Data

Contributor

Generic placeholder thumbnail

by jcla1

in ruby

Tags

euclid, length

Source Code

def euclidean_norm(p)
	return Math.sqrt(p.map { |n| n*n }.inject(:+))
end