gen_weights: Generate geographic weighting matrix

Description Usage Arguments

View source: R/gen_weights.R

Description

Given two sets of points, generate a matrix of weights for the k nearest neighbors for use in distance weighted averaging of values.

Usage

1
2
gen_weights(orig = load_site_list(), query = load_site_list(), k = 4,
  threshold = 1e+05, term = 1)

Arguments

orig

the data in which the neighbors are being found

query

the data for which the neighbors need to be found

k

the number of neighbors being searched for

threshold

the maximum distance for a neighbor to be given a weight

term

the power that the distance is raised to when the weight matrix is generated.


NSAPH/airpred documentation built on May 7, 2020, 10:49 a.m.