Learn R Programming

RandomFields (version 3.1.12)

RMsum: Plain scalar product

Description

RMsum is given by $$C(x,y) = \phi(x) + \phi(y)$$ It is a negative definite function although not a variogram.

Usage

RMsum(phi, var, scale, Aniso, proj)

Arguments

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

Value

See Also

RMmodel, RMplus RMprod

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

\dontrun{
RFfctn(RMsum(RMexp()), 1:10, grid=FALSE)
RFfctn(RMsum(RMexp()), 1:10, 1:10, grid=FALSE)
RFfctn(RMsum(RMexp()), as.matrix(1:10), as.matrix(1:10), grid=FALSE)
}


FinalizeExample()

Run the code above in your browser using DataLab