R/ci-utils.R

Defines functions ciWidth ciOverlap ciCovers ciOutside

Documented in ciCovers ciOutside ciOverlap ciWidth

ciOutside <- function(x, delta = 0) {
    idx = x$lower > delta | x$upper < delta
    return(idx)
}


ciCovers <- function(x, delta = 0) {
    idx = x$lower <= delta & x$upper >= delta
    return(idx)
}


ciOverlap <- function(x, y) {
    idx = x$lower <= y$upper & y$lower <= x$upper
    return(idx)
}


ciWidth <- function(x) {
    width = x$upper - x$lower
    return(width)
}

Try the Rariant package in your browser

Any scripts or data that you put into this service are public.

Rariant documentation built on Nov. 8, 2020, 6:56 p.m.