Learn R Programming

RandomFields (version 3.0.62)

RMball: RMball

Description

RMball referes to the indicator function of a ball with radius 1.

Usage

RMball(var, scale, Aniso, proj)

Arguments

var, scale, Aniso, proj
optional arguments; same meaning for any RMmodel. If not passed, the above covariance function remains unmodified.

See Also

RMpolygon RMspheric, RFsimulate, RMmodel.

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
\dontrun{
model <- RPcoins(shape=RMball())
x <- seq(0, 10, if (interactive()) 0.02 else 1) 
plot(RFsimulate(model, x=x))
}
FinalizeExample()

Run the code above in your browser using DataLab