calculateEuclideanDistance: Given a 2D data structure, it calculates the euclidean...

Description Usage Arguments Details Value Examples

View source: R/rectifiedI.R

Description

calculateEuclideanDistance Computes the euclidean distance betwen all pairs of nodes provided in the input vector.

Usage

1

Arguments

data

2D data structure for latitute and longitute respectively.

Details

Computes the euclidean distance, √{(x_1-x_2)^2 + (y_1-y_2)^2}, matrix between each pair of points.

Value

Matrix, of size nrow(data) \times nrow(data), with the distance between all the pair of points.

Examples

1
2
3
fileInput <- system.file("testdata", "chen.csv", package="Irescale")
data<-loadFile(fileInput)
distM<-calculateEuclideanDistance(data$data)

Irescale documentation built on Nov. 22, 2019, 1:07 a.m.