R/modelObjXY.R

Defines functions .newModelObjXY

#' @include modelObj.R methodObjSolverXY.R methodObjPredict.R
#' @rdname modelObj
setClass("modelObjXY",
         contains = c("modelObj"))

.newModelObjXY <- function(model, 
                           solver.method,  
                           solver.args,  
                           predict.method,  
                           predict.args) {

  solver <- .newMethodObjSolverXY(method = solver.method, 
                                  args = solver.args)
  predictor <- .newMethodObjPredict(method = predict.method, 
                                    args = predict.args)

  return( new("modelObjXY", 
              model = model, 
              solver = solver,
              predictor = predictor) )
}

Try the modelObj package in your browser

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

modelObj documentation built on June 7, 2022, 9:07 a.m.