RandomFields (version 3.0.5)

RPgauss: Simulation of Gaussian Random Fields

Description

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

Usage

RPgauss(phi, loggauss, stationary_only)

Arguments

phi
the RMmodel.
loggauss
logical. If TRUE then a log-Gaussian random field is returned. Default is FALSE.
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, RPschlather,

Examples

Run this code
set.seed(0)
model <- RMexp()
x <- seq(0, 10, if (interactive()) 0.02 else 1) 
plot(model, ylim=c(0,1))
set.seed(99)
plot(RFsimulate(model, x=x))
set.seed(99)
plot(RFsimulate(RPgauss(model), x=x), col=2) ## the same

Run the code above in your browser using DataLab