R/pdistx.R

Defines functions pdistx

Documented in pdistx

#' Euclidian distance
#' 
#' Euclidian distance.
#' 
#' 
#' @param y,x Coordinate vectors of starting positions
#' @param y1,x1 Coordinate vectors of end positions
#' @return Euclidian distance
#' @note Check order of coordinates (?), document distance functions together?
#' @seealso Called by \code{\link{variogram}}.
#' @keywords manip
#' @export pdistx
pdistx <-
function(y, x, y1, x1)
{
	return(sqrt((x - x1)^2. + (y - y1)^2.))
}

Try the geo package in your browser

Any scripts or data that you put into this service are public.

geo documentation built on May 29, 2017, 5:36 p.m.