Total Pythagorean distance of a sequence of points. Called internally.
pdisttot(xy)
xy | A matrix of X-Y coordinates of the sequence of points. |
---|
Distance (numeric)
points <- matrix(c(1:10), nrow=5, ncol=2, byrow=FALSE) pdisttot(xy=points)#> [1] 5.656854