checkClosedUnitCube: Domain check for closed unit hypercube [0,1]^n

Description Usage Arguments Value Examples

View source: R/domainChecks.R

Description

The function checks if a point (one row in the input argument) is inside the closed unit hypercube [0,1]^n or not. If the input matrix contains entries that are not numeric, i.e., not representing real numbers, the function throws an error. The dimension n is automatically inferred from the input matrix and is equal to the number of columns.

Usage

1

Arguments

x

Matrix with numeric entries. Each row represents one point

Value

Vector where each element (TRUE or FALSE) indicates if a point is in the unit hypercube

Examples

1
2
x <- matrix(rnorm(30),10,3)
checkClosedUnitCube(x)

multIntTestFunc documentation built on Oct. 5, 2021, 5:08 p.m.