find_nn: Find nearest neighbors based on a tapered covariance matrix

View source: R/orderfuns.R

find_nnR Documentation

Find nearest neighbors based on a tapered covariance matrix

Description

Find nearest neighbors based on a tapered covariance matrix

Usage

find_nn(locs, datum, m, tapering_range = 0.4)

Arguments

locs

matrix of locations of points (to match input argument of fields::rdist)

datum

Data where column i corresponds to observations at the i'th point of locs

m

number of neighbors

tapering_range

Percentage of the maximum distance for Exponential tapering, which defaults to 0.4 * the maximum distance.

Value

a matrix of nearest neighbors of dimension n x m


katzfuss-group/NPvecchia documentation built on April 15, 2022, 2:23 a.m.