interval | R Documentation |
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 )
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.
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)
x
A 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.
dim()
Get the dimension of the interval.
interval$dim()
The dimension of the interval.
clone()
The objects of this class are cloneable with this method.
interval$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.