Learn R Programming

RandomFields (version 3.0.5)

RMmult: Multiplication of Random Field Models

Description

RMmult is a multivariate covariance model which depends on up to 10 submodels $C_0, C_1, ..., C_10$. In general, realizations of the created RMmodel are pointwise product of independent realizations of the submodels. In particular, if all submodels are given through a covariance function, the resulting model is defined through its covariance function, which is the product of the submodels' covariances.

Usage

RMmult(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, var, scale, Aniso, proj)

Arguments

C0
C1,C2,C3,C4,C5,C6,C7,C8,C9
optional; each an RMmodel.
var,scale,Aniso,proj
optional parameters; same meaning for any RMmodel. If not passed, the above model remains unmodified.

Value

Details

The global parameters scale,Aniso,proj of RMmult are multiplied to the corresponding parameters of the submodels (from the right side). In case that all submodels are given through a covariance function, the global parameter var of RMmult is multiplied to the product covariance of RMmult.

See Also

RMplus, RMmodel, RFsimulate, RFfit.

Examples

Run this code
set.seed(0)

# separable, multiplicative model
model <- RMmult(RMgauss(proj=1), RMexp(proj=2, scale=5))
z <- RFsimulate(model=model, 0:10, 0:10, grid=TRUE, n=4)
plot(z)

Run the code above in your browser using DataLab