checkPos: Domain check for [0,Inf)^n

View source: R/domainChecks.R

checkPosR Documentation

Domain check for [0,\infty)^n

Description

The function checks if a point (one row in the input argument) is inside [0,\infty)^n = \times_{i=1}^n [0,\infty) or not. In this case the return values are all TRUE. 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

checkPos(x)

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 [0,\infty)^n

Author(s)

Klaus Herrmann

Examples

x <- matrix(rexp(30,rate=1),10,3)
checkPos(x)

multIntTestFunc documentation built on Sept. 11, 2024, 5:18 p.m.