R/set_getClpindepX_spec.R

setMethod(
  "getClpindepX", signature(model = "spec"),
  function(model, multimodel, theta, returnX, rawtheta, dind) {
    if (returnX) {
      theta <- getThetaCl(rawtheta, multimodel)[[dind]]
    }
    x <- specModel(theta@specpar, model)

    if (returnX) {
      x <- as.vector(x)
    }
    x
  }
)
glotaran/TIMP documentation built on Feb. 11, 2023, 4:11 a.m.