Learn R Programming

RandomFields (version 3.0.32)

RMmatrix: Matrix operator

Description

RMmatrix is a multivariate covariance model depending on a multivariate covariance model $\phi$. The corresponding covariance function is given by $$C(h) = M \phi(h) M^t$$

Usage

RMmatrix(phi, M, var, scale, Aniso, proj)

Arguments

phi
a k-variate covariance RMmodel.
M
a k times k matrix
var,scale,Aniso,proj
optional arguments; same meaning for any RMmodel. If not passed, the above covariance function remains unmodified.

Value

References

Schlather, M., Malinowski, A., Menck, P.J., Oesting, M. and Strokorb, K. (2013) Rpackage RandomFields: Analysis and simulation of multivariate random fields and more. Submitted

See Also

RMmodel, RFsimulate, RFfit.

Examples

Run this code
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
##                   RFoptions(seed=NA) to make them all random again
# bivariate Linear Model of Coregionalisation
model <- RMmatrix(M = c(0.9, 0.43), RMwhittle(nu = 0.3)) + 
         RMmatrix(M = c(0.6, 0.8), RMwhittle(nu = 2))
x <- y <- seq(-10, 10, 0.2)
simu <- RFsimulate(model, x, y, grid=TRUE)
plot(simu)

FinalizeExample()

Run the code above in your browser using DataLab