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