locUloc_R: Calculate the Distance Matrix Between Observed and Predicting...

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

Description

This function calculates the distance matrix between observed and predicting locations.

Usage

1
locUloc_R(loc, locp)

Arguments

loc

a matrix of n \times 2 which indicates the x-y coordinates of the observed locations; if a vector is used, it will be converted to matrix automatically

locp

a matrix of m \times 2 which indicates the x-y coordinates of the predicting locations; if a vector is used, it will be converted to matrix automatically

Details

This function performs the computation in R.

Value

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

Author(s)

Liang Jing ljing918@gmail.com

See Also

locUloc, loc2U, locCircle, locGrid, locSquad.

Examples

1
2
3
4
5
6
## Not run: 
  loc <- locGrid(1, 2, 10, 5)
  locp <- c(0.5, 0.5)
  U <- locUloc_R(loc, locp)

## End(Not run)

geoCount documentation built on May 2, 2019, 12:38 a.m.

Related to locUloc_R in geoCount...