An interval is a support that is a finite union of intervals.
lower
A numeric vector of lower bounds.
upper
A numeric vector of upper bounds.
lower_closed
A logical vector indicating whether the lower bound is closed.
upper_closed
A 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
)
has()
Determine if a value is contained in the interval.
infimum()
Get the infimum of the interval.
supremum()
Get the supremum of the interval.
dim()
Get the dimension of the interval.