Learn R Programming

RandomFields (version 3.1.12)

RPgauss: Simulation of Gaussian Random Fields

Description

This function is used to specify a Gaussian random field that is to be simulated or estimated. Returns an object of class RMmodel.

Usage

RPgauss(phi, boxcox, stationary_only)

Arguments

phi
the RMmodel.
boxcox
the one or two parameters of the box cox transformation. If not given, the globally defined parameters are used. see RFboxcox for Details.
stationary_only
Logical or NA. Used for the automatic choice of methods.
  • TRUE: the simulation of non-stationary random fields is refused. In particular, the intrinsic embedding method is excluded and the simulation of Brownian motion is rejecte

Value

  • The function returns an object of class RMmodel.

See Also

RP, Gaussian, RMmodel, RFoptions, RPbrownresnick, RPchi2, RPopitz. RPt, RPschlather.

Do not mix up with RMgauss or RRgauss.

Examples

Run this code
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
##                   RFoptions(seed=NA) to make them all random again
StartExample()
model <- RMexp()
x <- seq(0, 10, 0.02)
plot(model)
plot(RFsimulate(model, x=x, seed=0))
plot(RFsimulate(RPgauss(model), x=x, seed=0), col=2) ## the same
FinalizeExample()

Run the code above in your browser using DataLab