R/getPredY.R

Defines functions getPredY getPredY0 getPredY1

# getPredY.R
#
# helper functions for cobraPhaseII.R and updateSaveCobra.R
#
getPredY <- function(xNew,cobra) {
  predy <- interpRBF(xNew, cobra$fitnessSurrogate)      
  if (cobra$PLOG[length(cobra$PLOG)]) {
    predy <- plogReverse(predy,tail(cobra$pShift,1))
  }
  return (predy)
}
getPredY0 <- function(xNew,fitnessSurrogate,cobra) {
  predy <- interpRBF(xNew, fitnessSurrogate)      
  if (cobra$PLOG[length(cobra$PLOG)]) {
    predy <- plogReverse(predy,tail(cobra$pShift,1))
  }
  return (predy)
}
getPredY1 <- function(xNew,fitnessSurrogate,cobra) {
  predy <- interpRBF(xNew, fitnessSurrogate)      
  #if (cobra$PLOG[length(cobra$PLOG)]) {
  #  predy <- plogReverse(predy,tail(cobra$pShift,1))
  #}
  return (predy)
}

Try the SACOBRA package in your browser

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

SACOBRA documentation built on March 26, 2020, 7:15 p.m.