
Last chance! 50% off unlimited learning
Sale ends in
A helper function.
remove.close.ellipse(ps, x, y, a, b, alpha)
an n x 2 matrix of potential points.
the x coordinate of the center of the ellipse.
the y coordinate of the center of the ellipse.
the x-radius of the ellipse.
the y-radius of the ellipse.
the angle of rotation of the ellipse.
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.
# NOT RUN {
## The function is currently defined as
ps <- cbind(runif(100), runif(100))
inds <- dga:::remove.close.ellipse(ps, .5, .5, .1, .3, 1)
# }
Run the code above in your browser using DataLab