checkClosedUnitBall {multIntTestFunc}R Documentation

Domain check for closed unit ball \{\vec{x} \in R^n : \Vert \vec{x} \Vert_{2} \leq 1\}

Description

The function checks if a point (one row in the input argument) is inside the closed unit ball \{\vec{x} \in R^n : \Vert \vec{x} \Vert_2 \leq 1\} 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

checkClosedUnitBall(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 the closed unit ball

Author(s)

Klaus Herrmann

Examples

x <- matrix(rnorm(30),10,3)
checkClosedUnitBall(x)

[Package multIntTestFunc version 0.2.0 Index]