| 1 |
\name{interval_complement} |
| 2 |
|
| 3 |
\alias{interval_complement} |
| 4 |
\alias{interval_complement,Intervals_virtual-method} |
| 5 |
|
| 6 |
\title{Compute the complement of a set of intervals} |
| 7 |
|
| 8 |
\description{ |
| 9 |
Compute the complement of a set of intervals. |
| 10 |
} |
| 11 |
|
| 12 |
\usage{ |
| 13 |
\S4method{interval_complement}{Intervals_virtual}(x, check_valid = TRUE) |
| 14 |
} |
| 15 |
|
| 16 |
\arguments{ |
| 17 |
\item{x}{An \code{"Intervals"} or \code{"Intervals_full"} object.} |
| 18 |
|
| 19 |
\item{check_valid}{ |
| 20 |
Should \code{\link{validObject}} be called before passing to |
| 21 |
compiled code? Also see \code{\link{interval_overlap}}. |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
\value{ |
| 26 |
An object of the same class as \code{x}, compactly representing the |
| 27 |
complement of the intervals described in \code{x}. |
| 28 |
} |
| 29 |
|
| 30 |
\note{ |
| 31 |
For objects of class \code{"Intervals"}, closure on \code{-Inf} or |
| 32 |
\code{Inf} endpoints is set to match that of all the intervals with |
| 33 |
finite endpoints. For objects of class \code{"Intervals_full"}, |
| 34 |
non-finite endpoints are left open (although in general, this package |
| 35 |
does not make a distinction between closed and open infinite |
| 36 |
endpoints). |
| 37 |
} |
| 38 |
|