euclidean distance


See On Github

Data

Contributor

Generic placeholder thumbnail

by jcla1

in haskell

Source Code

euclideanDistance :: [Double] -> [Double] -> Double
euclideanDistance p q = sqrt . sum $ zipWith (\ u v -> (u-v)^2) p q