rgp {SpatialExtremes}R Documentation

Gaussian Random Fields Simulation

Description

This functions generates gaussian random fields.

Usage

rgp(n, coord, cov.mod = "powexp", mean = 0, nugget = 0, sill = 1, range
= 1, smooth = 1, grid = FALSE, ...)

Arguments

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.

Value

A matrix or an array containing the random field replicates.

Author(s)

Mathieu Ribatet

See Also

link{rmaxstab}

Examples

x <- seq(0, 20, length = 250)
coord <- cbind(x, x)
gp <- rgp(1, coord, cov.mod = "whitmat", grid = TRUE)
image(x, x, gp[,,1])

[Package SpatialExtremes version 1.3-0 Index]