genRandomPnts: Generate random points based on distance constraints

View source: R/genRandomPnts.R

genRandomPntsR Documentation

Generate random points based on distance constraints

Description

This function generate random points inside polygons based on distance constraints. The function is based on spatstat::rSSI.

Usage

genRandomPnts(x, seed = 123, dist = NULL, n = Inf, maxit = 100,
  quiet = TRUE, cores = 1, ...)

Arguments

x

object of class sf

seed

seed parameter for replication. Default: 123

dist

inhibition distance of spatstat::rSSI. Default: NULL

n

maximum number of points allowed. If n is finite, stop when the total number of points in the point pattern reaches n. If n is infinite (the default), stop only when it is apparently impossible to add any more points

maxit

number of rejected proposals after which the algorithm should terminate. Default: 100

quiet

no outputs in console. Default: TRUE

cores

number of cores for parallel processing. Default: 1 (sequential)

...

additional parameters for spatstat::rSSI-function

Value

Randomly sampled points of class sf


ggRaver/Lslide documentation built on April 8, 2022, 7:14 a.m.