Learn R Programming

varycoef (version 0.3.2)

own_dist: Computes (Cross-) Distances

Description

Computes (Cross-) Distances

Usage

own_dist(x, y = NULL, taper = NULL, ...)

Arguments

x

(matrix) Matrix containing locations

y

(NULL or matrix) If NULL, computes the distances between x. Otherwise, computes cross-distances, i.e., pair-wise distances between rows of x and y.

taper

(NULL or numeric(1)) If NULL, all distances are considered. Otherwise, only distances shorter than taper are used. Hence the output will be a sparse matrix of type spam.

...

Further arguments for either dist or nearest.dist.

Value

A matrix or spam object.