loc2U: Calculate the Distance Matrix among Given Locations

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/locUZ.R

Description

This function calculates the distance matrix among the given locations.

Usage

1
loc2U(loc)

Arguments

loc

a matrix of n \times 2 which indicates the x-y coordinates of the original locations

Details

This function calls the underlying C++ program to do the computation.

Value

A n \times n matrix with the element e_{ij} indicating the distance between the ith and jth locations.

Author(s)

Liang Jing ljing918@gmail.com

See Also

loc2U_R, locCircle, locGrid, locSquad.

Examples

1
2
3
4
5
## Not run: 
  loc <- locGrid(1, 2, 10, 5)
  U <- loc2U(loc)

## End(Not run)

geoCount documentation built on May 2, 2019, 5:46 p.m.

Related to loc2U in geoCount...