R/AF2threshold.R

Defines functions AF2threshold

Documented in AF2threshold

AF2threshold <-
function(mpi, prof, zeta = NULL) {
#     if (class(mpi)!="ophi")
      if (!is(mpi, "ophi"))
        stop("mpi is not an object of class 'ophi'")
#     if (class(prof)!="wprof")
      if (!is(prof, "wprof"))
        stop("prof is not an object of class 'wprof'")
    if (!is.null(zeta)) {
        # if (class(zeta)!="incidence")
        if (!is(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 Aug. 19, 2023, 5:07 p.m.