RMidmodel: Identical Model

Description Usage Arguments Value See Also Examples

View source: R/RMmodels.R

Description

RMidmodel is the identical operator on models, i.e. for objects of class RMmodel.

Usage

1
RMidmodel(phi, vdim, var, scale, Aniso, proj)

Arguments

phi

covariance function of class RMmodel

vdim

for internal purposes

var,scale,Aniso,proj

optional arguments; same meaning for any RMmodel. If not passed, the above covariance function remains unmodified.

Value

RMidmodel returns an object of class RMmodel.

See Also

RMmodel. RMid, RMtrafo, RMprod

Examples

1
2
3
4
5
6
7
8
9
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
##                   RFoptions(seed=NA) to make them all random again
model <- RMexp()
x <- 0:10
z <- RFsimulate(model, x)

model2 <- RMidmodel(model)
z2 <- RFsimulate(model, x)
sum(abs(as.vector(z)- as.vector(z2))) == 0 # TRUE

RandomFields documentation built on Jan. 19, 2022, 1:06 a.m.