predict.dace | R Documentation |
Predicts y(x)
for a given DACE model (i.e. as created by buildKrigingDACE
).
## S3 method for class 'dace' predict(object, newdata, ...)
object |
Kriging model (settings and parameters) of class |
newdata |
design matrix ( |
... |
not used |
returns a list with the following elements:
|
Predicted response |
|
Gradient of response |
|
Estimated MSE (only if: |
|
Gradient of MSE (only if: |
The user can choose whether to predict only mean or if he is also interested in gradient, mean squared error MSE, or the MSE gradient.
object$GRAD
specifies whether gradient of response should be computed. Even if GRAD is TRUE, the gradient will only be computed in case of a single design point.
MSE
specifies whether estimated MSE of response should be computed.
GRADMSE
specifies whether gradient of MSE should be computed. Even if GRADMSE is TRUE, the gradient will only be computed in case of a single design point.
The authors of the original DACE Matlab toolbox \
are Hans Bruun Nielsen, Soren Nymand Lophaven and Jacob Sondergaard.
Additional code for generalization to different models by Tobias Wagner wagner@isf.de.
Porting and adaptation to R and further extensions by Martin Zaefferer martin.zaefferer@fh-koeln.de.
S.~Lophaven, H.~Nielsen, and J.~Sondergaard. DACE—A Matlab Kriging Toolbox. Technical Report IMM-REP-2002-12, Informatics and Mathematical Modelling, Technical University of Denmark, Copenhagen, Denmark, 2002.
buildKrigingDACE
## Create design points x <- cbind(runif(20)*15-5,runif(20)*15) ## Compute observations at design points y <- funSphere(x) ## Create model fit <- buildKrigingDACE(x,y) ## Create new design xx <- cbind(runif(20)*15-5,runif(20)*15) ## Predict candidates y1 <- predict(fit,xx)$y ## Plot residuals plot(y1 - funSphere(xx))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.