R/count2threshold.R

Defines functions count2threshold

Documented in count2threshold

count2threshold <-
function(mpi, prof, zeta = NULL) {
    if (class(mpi)!="ophi") stop("mpi is not an object of class 'ophi'")
    if (class(prof)!="wprof") stop("prof is not an object of class 'wprof'")
    if (!is.null(zeta)) {
        if (class(zeta)!="incidence")
            stop("zeta is not an object of class 'incidence'")
    } else zeta <- getzeta(prof)
    ds <- apply(prof$profiles, 1, mpi$rho_k)
    gen.downset(zeta, ds)
}

Try the parsec package in your browser

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

parsec documentation built on May 2, 2019, 6:08 p.m.