Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


dga (version 2.0.1)

remove.close.ellipse: A Helper Function to Tell Which Points are Near the Boundary of the Ellipse

Description

A helper function.

Usage

remove.close.ellipse(ps, x, y, a, b, alpha)

Arguments

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.

Value

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.

Examples

Run this code
# 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