remove.close.ellipse {dga} | R Documentation |
A helper function.
remove.close.ellipse(ps, x, y, a, b, alpha)
ps |
an n x 2 matrix of potential points. |
x |
the x coordinate of the center of the ellipse. |
y |
the y coordinate of the center of the ellipse. |
a |
the x-radius of the ellipse. |
b |
the y-radius of the ellipse. |
alpha |
the angle of rotation of the ellipse. |
inds |
a vector of length nrow(ps) that tells whether each row of ps is near the border of the ellipse defined by x,y,a,b, and alpha. |
Kristian Lum kl@hrdag.org
## The function is currently defined as
ps <- cbind(runif(100), runif(100))
inds <- dga:::remove.close.ellipse(ps, .5, .5, .1, .3, 1)