Learn R Programming

RandomFields (version 3.1.16)

RPchi2: Simulation of a Chi2 Random Fields

Description

RPchi2 defines a chi2 fields.

Usage

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

Run this code
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)


Run the code above in your browser using DataLab