An interval is a support that is a finite union of intervals.
lowerA numeric vector of lower bounds.
upperA numeric vector of upper bounds.
lower_closedA logical vector indicating whether the lower bound is closed.
upper_closedA logical vector indicating whether the upper bound is closed.
new()Initialize an interval.
interval$new(
lower = -Inf,
upper = Inf,
lower_closed = FALSE,
upper_closed = FALSE
)lowerA numeric vector of lower bounds.
upperA numeric vector of upper bounds.
lower_closedA logical vector indicating whether the lower bound is closed.
upper_closedA logical vector indicating whether the upper bound is closed.
is_empty()Determine if the interval is empty
interval$is_empty()A logical vector indicating whether the interval is empty.
has()Determine if a value is contained in the interval.
interval$has(x)xA numeric vector of values.
A logical vector indicating whether each value is contained
infimum()Get the infimum of the interval.
interval$infimum()A numeric vector of infimums.
supremum()Get the supremum of the interval.
interval$supremum()A numeric vector of supremums.
The dimension of the interval.
clone()The objects of this class are cloneable with this method.
interval$clone(deep = FALSE)deepWhether to make a deep clone.