RPchi2: Simulation of Chi2 Random Fields

Description Usage Arguments Value See Also Examples

View source: R/RMmodels.R

Description

RPchi2 defines a chi2 field.

Usage

1
RPchi2(phi, boxcox, f)

Arguments

phi

the RMmodel. If a model for the distribution is not specified, RPgauss is used as default and a covariance model is expected.

boxcox

the one or two parameters of the box cox transformation. If not given, the globally defined parameters are used. See RFboxcox for details.

f

integer. Degree of freedom.

Value

The function returns an object of class RMmodel.

See Also

Auxiliary RMmodels, RP, RPgauss.

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 <- RPchi2(RMexp(), f=2)
x <- seq(0, 10, 0.1)
z <- RFsimulate(model=model, x, x, n=4)
plot(z)

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