Description Usage Arguments Value Examples
View source: R/bandwidth_selection.R
Calculate the distance to the k'th nearest neighbour for a given bivariate data set, on a given grid.
1 |
data |
The data set, a nx2-matrix. |
grid |
The grid, a dx2-matrix. |
k |
The number of neighbours. |
A vector of length d containing the distance to the k'th nearest neighbour for each grid point.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.