calculateEuclideanDistance {Irescale} | R Documentation |
calculateEuclideanDistance
Computes the euclidean distance betwen all pairs of nodes provided in the input vector.
calculateEuclideanDistance(data)
data |
2D data structure for latitute and longitute respectively. |
Computes the euclidean distance, \sqrt{(x_1-x_2)^2 + (y_1-y_2)^2}
, matrix between each pair of points.
Matrix, of size nrow(data) \times nrow(data)
, with the distance between all the pair of points.
fileInput <- system.file("testdata", "chen.csv", package="Irescale")
data<-loadFile(fileInput)
distM<-calculateEuclideanDistance(data$data)