R/pairwise-distances.R

Defines functions pairwise_distances

Documented in pairwise_distances

#' pairwise distances
#' 
#' @param x Point pattern data in some format.
#' @param toroidal For toroidal distances.
#'
#' @return
#' Value is the lower triangle of the distasnce matrix, returned as a vector.
#' 
#' @useDynLib SGCS
#' @export

pairwise_distances <- function(x, toroidal=FALSE) {
  x <- internalise_pp(x)
  .External("pairwise_distances_c", x, as.integer(toroidal), PACKAGE = "SGCS")
}

Try the SGCS package in your browser

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

SGCS documentation built on May 1, 2019, 8:20 p.m.