testU: Test if a given point is in U

View source: R/mappings.R

testUR Documentation

Test if a given point is in U

Description

Test if a given point is in U

Usage

testU(y, A)

Arguments

y

matrix corresponding to points to be tested

A

random embedding matrix

Examples

## Identification of the U set
set.seed(42)
d <- 2; D <- 5

A <- selectA(d, D)
size <- 15 # box size of Y
ntest <- 10000
Y <- size * (2 * matrix(runif(ntest * d), ntest, d) - 1)

inU <- testU(Y, A)
colors <- rep('black', ntest)
colors[inU] <- 'green'
plot(Y, col = colors, pch = 20, cex = 0.5)


mbinois/RRembo documentation built on Sept. 16, 2023, 10:15 p.m.