Description Usage Arguments Value Examples
View source: R/Angular-functions.R
For each point in the set, uses k.nearest.angles
to obtain the 2 nearest neighbours, then identifies any for which the angle between them is more than pi/8 from perpendicular or parallel.
1 | filter.by.2nn(pts)
|
pts |
An n-by-2 matrix containing the coordinates of the points to be compared. |
A Boolean array of length n that can be used to filter points or angles. TRUE indicates that the angle between the two nearest neighbours is closer to perpendicular than not; FALSE indicates that the absolute difference, modulo 2pi, is closer to 45 degrees than to 0 or 90.
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.