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

Description Usage Arguments Value Author(s) Examples

View source: R/venn_functions.R

Description

A helper function.

Usage

1
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.

Author(s)

Kristian Lum kl@hrdag.org

Examples

1
2
3
## The function is currently defined as
ps <- cbind(runif(100), runif(100))
inds <- dga:::remove.close.ellipse(ps, .5, .5, .1, .3, 1)

dga documentation built on May 10, 2021, 5:06 p.m.