RMconstant: Covariance Matrix Constant in Space

Description Usage Arguments Value See Also Examples

View source: R/RMmodels.R

Description

RMconstant defines a spatially constant covariance function.

Usage

1

Arguments

M

a numerical matrix defining the user-defined covariance for a random field; the matrix should be positive definite, symmetric and its dimension should be equal to the length of observation or simulation vector.

var

variance

Value

RMconstant returns an object of class RMmodel.

See Also

RMfixcov, RMmodel.

Examples

1
2
3
4
5
6
7
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
##                   RFoptions(seed=NA) to make them all random again

model <- RMconstant(diag(2),var=3)
plot(model)
x <- seq(0,10,length=100)
z <- RFsimulate(model=model,x=x)

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