R/predictMu.R

Defines functions `predictMu`

`predictMu` <-
function(gp, newTheta) {
	if (gp$constantMean == 0) {
		return (gp$Bhat%*%c(1, newTheta))
	}
	return (gp$mu[1])   ## otherwise mu is constant
}

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.