Learn R Programming

RandomFields (version 3.0.10)

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)

model <- RPchi2(RMexp(), f=2)
z <- RFsimulate(model=model, 0:10, 0:10, grid=TRUE, n=4)
plot(z)

RFoptions(seed=NA)

Run the code above in your browser using DataLab