Learn R Programming

RandomFields (version 3.0.10)

RMid: Identical Model

Description

RMid is the identical operator for objects of class RMmodel

Usage

RMid(phi, vdim, var, scale, Aniso, proj)

Arguments

phi
covariance function of class RMmodel.
vdim
for internal purposes
var,scale,Aniso,proj
optional parameters; same meaning for any RMmodel. If not passed, the above covariance function remains unmodified.

Value

See Also

RMmodel,

Examples

Run this code
RFoptions(seed=0)
model <- RMexp()
x <- 0:10
RFoptions(seed=0)
z <- RFsimulate(model, x, spC=FALSE)
model2 <- RMid(model)
RFoptions(seed=0)
z2 <- RFsimulate(model, x, spC=FALSE)
sum(abs(z-z2)) == 0 # TRUE
RFoptions(seed=NA)

Run the code above in your browser using DataLab