R/predictNewYCV.R

Defines functions `predictNewYCV`

`predictNewYCV` <-
function(gp, X, Z, muMatrix, newTheta, varMatrix) {
  r = calcCorOneObs(X, gp$beta, gp$a, newTheta)
  newY = predictMu(gp, newTheta) + gp$sig2 * r %*% solve(varMatrix) %*% (Z - muMatrix)
  return (newY)
}

Try the mlegp package in your browser

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

mlegp documentation built on March 18, 2022, 5:29 p.m.