Learn R Programming

RandomFields (version 3.0.35)

RPchi2: Simulation of a Chi2 Random Fields

Description

RPchi2 defines a chi2 fields.

Usage

RPchi2(phi, 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.
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, if (interactive()) 0.01 else 2)
z <- RFsimulate(model=model, x, x, n=4)
plot(z)

FinalizeExample()

Run the code above in your browser using DataLab