powered by
ed simply calculates euclidean distance between two points defined by their (x; y) coordinates.
ed
ed(pt1, pt2)
Returns the euclidean distance between the two points.
(x; y) coordinates of the first point.
(x; y) coordinates of the second point.
edm, edm_nearest, dist.
ed(c(0,1), c(1,0))
Run the code above in your browser using DataLab