gen_loca: Generate locations over a spatial domain

Description Usage Arguments Value Examples

View source: R/gen_loca.r

Description

Generates a pattern of locations over a multiple of the unit square. Various point patterns are permitted.

Usage

1
2
gen_loca(method = "grid", ns = NULL, unit = 100, sphere = FALSE,
  x.num = NULL, y.num = x.num, alpha = 1, beta = 2.5, rad = 0.2, ...)

Arguments

method

the pattern of points to generate, allowed values are grid, uniform, radiual, and spots.

ns

the number of locations to generate.

unit

the dimension of the domain, will be unit x unit

sphere

logical, if TRUE, then the locations are projected onto a sphere.

x.num

for method="grid", the number of locations in the x-direction.

y.num

for method="grid", the number of locations in the y-direction.

alpha

for method="radial", the first parameter of the beta distribution.

beta

for method="radial", the second parameter of the beta distribution.

rad

for method="spots", the approximate (relative) radius of each spot (not on same scale as unit).

...

space for additional arguments

Value

A matrix of locations.

Examples

1
2
set1 <- gen_loca( method="grid", x.num=4, y.num=5 )
set2 <- gen_loca( method="radial", ns=5000, alpha=1, beta=2.5 )

jelsema/RRSM documentation built on May 19, 2019, 4:02 a.m.