A function to simulate a Gaussian field on a regular square lattice, the returned object is of class lgcpgrid.
rgauss(
n = 1,
range = c(0, 1),
ncells = 128,
spatial.covmodel = "exponential",
model.parameters = lgcppars(sigma = 2, phi = 0.1),
covpars = c(),
ext = 2
)
the number of realisations to generate. Default is 1.
a vector of length 2, defining the left-most and right most cell centroids in the x-direction. Note that the centroids in the y-direction are the same as those in the x-direction.
the number of cells, typially a power of 2
spatial covariance function, default is exponential, see ?CovarianceFct
parameters of model, see ?lgcppars. Only set sigma and phi for spatial model.
vector of additional parameters for spatial covariance function, in order they appear in chosen model in ?CovarianceFct
how much to extend the parameter space by. Default is 2.
an lgcp grid object containing the simulated field(s).