simForm: Spatial simulation

Description Usage Arguments Details Value Examples

Description

Simulate a geometrical figure on a 2D spatial field

Usage

1
2
simForm(n.obs, xmax, ymax, radius, center = NULL, coords.centered = TRUE,
  distance = "euclidean")

Arguments

n.obs

the number of repetitions.

xmax

the length of the spatial field.

ymax

the width of the spatial field

radius

the maximum distance to the center for which pixels will set to 1. The others will be set to 0.

center

the position relative to which the distance will be computed.

coords.centered

should the coordinates be centered around 0,0? Else they will start at 0,0 and take positve values. May affect the computation of the distance.

distance

the type of distance to be used.

Details

The available distances are those of the dist function from the stats package.

Value

a list containing:

Examples

1
2
image(simForm(100, 10, 10, 2)$X)
image(simForm(100, 10, 10, 2, distance = "maximum")$X)

bozenne/lava.penalty documentation built on May 13, 2019, 1:41 a.m.