Given two sets of points, generate a matrix of weights for the k nearest neighbors for use in distance weighted averaging of values.
1 2 | gen_weights(orig = load_site_list(), query = load_site_list(), k = 4,
threshold = 1e+05, term = 1)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.