R/bsmooth.uncertainty1.R

bsmooth.uncertainty1 <- function (object, ...) {
    if (inherits(object, "uncertainty1_multi"))
        stop("bsmooth is not available for multicut based objects.")
    if (inherits(object, "uncertainty1_opti")) {
        if (attr(object,"type") != "multi")
            stop("type='multi' required for bsmooth")
        bp <- bestpart(object)
        return(t(t(bp) * object$mu1 + (1 - t(bp)) * object$mu0))
    }
}

Try the opticut package in your browser

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

opticut documentation built on May 2, 2019, 5:09 a.m.