Learn R Programming

RandomFields (version 3.0.5)

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
set.seed(0)
model <- RMexp()
x <- 0:10
set.seed(0)
z <- RFsimulate(model, x, spC=FALSE)
model2 <- RMid(model)
set.seed(0)
z2 <- RFsimulate(model, x, spC=FALSE)
sum(abs(z-z2)) == 0 # TRUE

Run the code above in your browser using DataLab