RMball: RMball

Description Usage Arguments See Also Examples

View source: R/RMmodels.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
##                   RFoptions(seed=NA) to make them all random again

x <- seq(0,10,len=100)
model <- RMball(var=2,scale=1.5)
plot(model)
z <- RFsimulate(RPpoisson(model),x=x,y=x,intensity=0.1)
plot(z)

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