R/getDecVar.R

##
## getDecVar Method for objects of class "CLPS"
##
setMethod(f = "getDecVar", signature(object = "CLPS"), definition = function(object){
  par <- getPar(object)
  ans <- par[attr(object@LP, "DecVar")]
  return(ans)
})
##
## getDecVar Method for objects of class "CDEPS"
##
setMethod(f = "getDecVar", signature(object = "CDEPS"), definition = function(object){
  par <- getPar(object)
  ans <- par[attr(object@DEP@MP, "DecVar")]
  return(ans)
})

Try the TSSP package in your browser

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

TSSP documentation built on May 2, 2019, 4:56 p.m.