rgp {SpatialExtremes} | R Documentation |
This functions generates gaussian random fields.
rgp(n, coord, cov.mod = "powexp", mean = 0, nugget = 0, sill = 1, range = 1, smooth = 1, grid = FALSE, ...)
n |
Integer. The number of replications. |
coord |
The locations coordinates for which the gaussian process is observed. |
cov.mod |
Character string. The covariance model used. Must be
one of "whitmat", "cauchy", "powexp" of "cauchy". See the
covariance function. |
mean |
Numeric. The mean of the gaussian random field. |
nugget |
Numeric. The nugget of the gaussian random field. |
sill |
Numeric. The sill parameter in the covariance function. |
range |
Numeric. The range parameter in the covariance function. |
smooth |
Numeric. The smooth parameter in the covariance function. |
grid |
Logical. Does coord defines a grid? |
... |
Other arguments to be passed to the turning bands method. |
A matrix or an array containing the random field replicates.
Mathieu Ribatet
link{rmaxstab}
x <- seq(0, 20, length = 250) coord <- cbind(x, x) gp <- rgp(1, coord, cov.mod = "whitmat", grid = TRUE) image(x, x, gp[,,1])