Description Usage Arguments Value Examples
View source: R/Angular-functions.R
For each point in the set, uses knnx.index
to obtain the k nearest neighbours, then applies atan2
to get the angle between them.
1 | k.nearest.angles(pts, k)
|
pts |
A two-column matrix containing the coordinates of the points to be compared. |
k |
Number of neighbours to be included for each point. |
A (k+2)-column matrix; the first two columns contain each point's x and y coordinates, the remainder containing the angles found
1 | k.2 <- k.nearest.angles(p, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.