Tests if the given data lies in the support of the Distribution, either tests if all data lies in the support or any of it.

liesInSupport(object, x, all = TRUE, bound = FALSE)

Arguments

object

Distribution.

x

vector of numerics to test.

all

logical, see details.

bound

logical, if FALSE (default) uses dmin/dmax otherwise inf/sup.

Value

Either a vector of logicals if all is FALSE otherwise returns TRUE if every element lies in the distribution support or FALSE otherwise.

Details

If all is TRUE (default) returns TRUE only if every element in x lies in the support. If all is FALSE then returns a vector of logicals for each corresponding element in the vector x.

R6 Usage

$liesInSupport(x, all = TRUE, bound = FALSE)

See also