Irescale (version 0.2.6)

calculateManhattanDistance: Calculates the manhattan distance.

Description

calculateManhattanDistance Calculates the manhattan distance between each pair of nodes.

Usage

calculateManhattanDistance(data)

Arguments

data

2D structure with n rows and 2 colums that represents the coordinate in a plane.

Value

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

Examples

Run this code
# NOT RUN {
fileInput <- system.file("testdata", "chessboard.csv", package="Irescale")
data<-loadChessBoard(fileInput)
distM<-calculateManhattanDistance(data$data)
# }

Run the code above in your browser using DataCamp Workspace