logical; if true all the intervals are open at left
and closed at right; in the formulas below, \(\le\) should be
swapped with \(<\) (and \(>\) with \(\ge\)), and
rightmost.closed means ‘leftmost is closed’. This may
be useful, e.g., in survival analysis computations.
rightmost.closed
logical; if true, the rightmost interval,
vec[N-1] .. vec[N] is treated as closed, see below.