Create a parameter set describing a direct sampling algorithm to multipoint simulation.
All parameters except nsim
are optional, as they have default values reasonable
according to experience.
DSpars(
nsim = 1,
scanFraction = 0.25,
patternSize = 10,
gof = 0.05,
seed = NULL,
...
)
an S3-list of class "gmDirectSamplingParameters" containing the six elements given as arguments to the function. This is just a compact way to provide further functions such as predict_gmSpatialModel
with appropriate triggers for choosing a prediction method or another, in this case for triggering direct sampling.
number of realisations desired (attention: current algorithm is slow, start with small values!)
maximum fraction of the training image to be scanned on each iteration
number of observations used for conditioning the simulation
maximum acceptance discrepance between a data event in the training image and the conditioning data event
an object specifying if and how the random number generator should be
initialized, see ?simulate
in base "stats" package
further parameters, not used
(dsp = DSpars(nsim=100, scanFraction=75, patternSize=6, gof=0.05))
## then run predict(..., pars=dsp)
Run the code above in your browser using DataLab