Integer.Support: Create an object which represents support over a range of...

View source: R/support.R

Integer.SupportR Documentation

Create an object which represents support over a range of integers

Description

Create an object which represents support over a range of integers

Usage

Integer.Support(lower, upper, lower.inclusive = T, upper.inclusive = T)

Arguments

lower

The lower and upper bounds of support. For a single range of support, these should both be of length 1. If support exists over multiple disjoint ranges, then lower and upper should be numeric vectors of the same length, with the lower and upper bounds of each of the disjoint ranges

upper

The lower and upper bounds of support. For a single range of support, these should both be of length 1. If support exists over multiple disjoint ranges, then lower and upper should be numeric vectors of the same length, with the lower and upper bounds of each of the disjoint ranges

lower.inclusive

Logical vectors indicating whether the lower and upper bounds are inclusive (vs. exclusive). If length(lower)/length(upper) are >1, these can be either logical vectors of the same length, or logical scalars (in which case the value applies to each element of lower and upper)

upper.inclusive

Logical vectors indicating whether the lower and upper bounds are inclusive (vs. exclusive). If length(lower)/length(upper) are >1, these can be either logical vectors of the same length, or logical scalars (in which case the value applies to each element of lower and upper)

Value

An object of class Range_Support, such that is.supported is true if x falls within any of the ranges lower[i] to upper[i]


tfojo1/distributions documentation built on July 27, 2024, 3:29 p.m.