R/setGPNames.R

Defines functions `setGPNames`

`setGPNames` <-
function(x, s) {
	if (!is.gp.list(x)) { 
		stop("error: x must be of type gp.list")
	}
	if (length(s) != x$numGPs) {
		stop("s must be same length as x$numGPs")
	}
	x$names = s
	return (x)
}

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.