rgp: Gaussian Random Fields Simulation

View source: R/simgaussproc.R

rgpR 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, control = list())

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?

control

A named list with arguments 'nlines' (number of lines of the TBM simulation) and 'method' the name of the simulation method - must be one of 'exact', 'tbm' or 'circ'. If 'method' is NULL (default), the function tries to find the most appropriate simulation technique. If 'nlines' is NULL it is set to 1000.

Value

A matrix or an array containing the random field replicates.

Author(s)

Mathieu Ribatet

See Also

link{rmaxstab}

Examples

x <- y <- seq(0, 20, length = 100)
coord <- cbind(x, y)
gp <- rgp(1, coord, cov.mod = "whitmat", grid = TRUE)
filled.contour(x, y, gp, color.palette = terrain.colors)

SpatialExtremes documentation built on April 19, 2022, 5:06 p.m.