View source: R/simulateKriging.R
simulate.kriging | R Documentation |
(Conditional) Simulation at given locations, with a model fit resulting from buildKriging
.
In contrast to prediction or estimation, the goal is to reproduce the covariance
structure, rather than the data itself. Note, that the conditional simulation
also reproduces the training data, but
has a two times larger error than the Kriging predictor.
## S3 method for class 'kriging' simulate( object, nsim = 1, seed = NA, xsim, method = "decompose", conditionalSimulation = TRUE, Ncos = 10, returnAll = FALSE, ... )
object |
fit of the Kriging model (settings and parameters), of class |
nsim |
number of simulations |
seed |
random number generator seed. Defaults to NA, in which case no seed is set |
xsim |
list of samples in input space, to be simulated at |
method |
|
conditionalSimulation |
logical, if set to TRUE (default), the simulation is conditioned with the training data of the Kriging model. Else, the simulation is non-conditional. |
Ncos |
number of cosine functions (used with |
returnAll |
if set to TRUE, a list with the simulated values (y) and the corresponding covariance matrix (covar) of the simulated samples is returned. |
... |
further arguments, not used |
Returned value depends on the setting of object$simulationReturnAll
N. A. Cressie. Statistics for Spatial Data. JOHN WILEY & SONS INC, 1993.
C. Lantuejoul. Geostatistical Simulation - Models and Algorithms. Springer-Verlag Berlin Heidelberg, 2002.
buildKriging
, predict.kriging
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.