pairwise.dist: Calculate pairwise distances in a 2D region

View source: R/stcorr.R

pairwise.distR Documentation

Calculate pairwise distances in a 2D region

Description

Given a random field defined by (x, y) and observation value z, this function calculates the distance between each location pair and appends original observation values into the same row. The output can be exploited to calculate spatial correlations. Note that only Euclidean distance is supported merely for this time.

Usage

pairwise.dist(x, y, z)

Arguments

x, y

the coordinates of given random field

z

the observation value for each point (x,y)

Value

the data frame of c('r', 'z1', 'z2')

See Also

spatial.corr


caesar0301/movr documentation built on June 18, 2022, 2:37 a.m.